SHARE
TWEET

arm-context.patch

a guest Aug 31st, 2012 27 Never
  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
RAW Paste Data
Top