Want more features on Pastebin? Sign Up, it's FREE!
Guest

arm-context.patch

By: a guest on Aug 31st, 2012  |  syntax: None  |  size: 0.81 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- src/zm_signal.cpp.orig      2012-08-30 13:24:16.479872021 -0700
  2. +++ src/zm_signal.cpp   2012-08-30 13:27:35.909871996 -0700
  3. @@ -82,13 +82,13 @@
  4.         int trace_size = 0;
  5.  
  6.  #if HAVE_STRUCT_SIGCONTEXT_EIP
  7. -       Error( "Signal address is %p, from %p", (void *)context.cr2, (void *)context.eip );
  8. +       Error( "Signal address is %p, from %p", (void *)context.fault_address, (void *)context.eip );
  9.  
  10.         trace_size = backtrace( trace, TRACE_SIZE );
  11.         // overwrite sigaction with caller's address
  12.         trace[1] = (void *)context.eip;
  13.  #elif HAVE_STRUCT_SIGCONTEXT
  14. -       Error( "Signal address is %p, no eip", (void *)context.cr2 );
  15. +       Error( "Signal address is %p, no eip", (void *)context.fault_address );
  16.  
  17.         trace_size = backtrace( trace, TRACE_SIZE );
  18.  #else // HAVE_STRUCT_SIGCONTEXT
clone this paste RAW Paste Data