VirtualBox

Changeset 145 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 18, 2007 3:51:46 PM (18 years ago)
Author:
vboxsync
Message:

64-bit (just making it build).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r1 r145  
    4343#endif
    4444#include <ucontext.h>
     45#ifdef __AMD64__
     46# define REG_PC REG_RIP
     47#else
     48# define REG_PC REG_EIP
     49#endif
     50
    4551
    4652
     
    5965    if (sig == SIGSEGV)
    6066        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]));
    6268    else
    6369        Log (("GUI: Got signal %d\n", sig));
     
    6571    trace_size = backtrace (trace, 16);
    6672    /* 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];
    6874
    6975    messages = backtrace_symbols (trace, trace_size);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette