Changeset 145 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 18, 2007 3:51:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r1 r145 43 43 #endif 44 44 #include <ucontext.h> 45 #ifdef __AMD64__ 46 # define REG_PC REG_RIP 47 #else 48 # define REG_PC REG_EIP 49 #endif 50 45 51 46 52 … … 59 65 if (sig == SIGSEGV) 60 66 Log (("GUI: Got signal %d, faulty address is %p, from %p\n", 61 sig, info->si_addr, uc->uc_mcontext.gregs[REG_ EIP]));67 sig, info->si_addr, uc->uc_mcontext.gregs[REG_PC])); 62 68 else 63 69 Log (("GUI: Got signal %d\n", sig)); … … 65 71 trace_size = backtrace (trace, 16); 66 72 /* overwrite sigaction with caller's address */ 67 trace[1] = (void *) uc->uc_mcontext.gregs [REG_ EIP];73 trace[1] = (void *) uc->uc_mcontext.gregs [REG_PC]; 68 74 69 75 messages = backtrace_symbols (trace, trace_size);
Note:
See TracChangeset
for help on using the changeset viewer.