Leopard fix (hopefully).

Needs testing on other Linux OSes to see
what other changes need to take place.
This commit is contained in:
Jason Felds
2011-05-21 16:30:29 -04:00
parent fc522fb4d9
commit 5554c84538
+6
View File
@@ -456,9 +456,15 @@ void InitializeBacktrace()
void GetSignalBacktraceContext( BacktraceContext *ctx, const ucontext_t *uc )
{
#if !__DARWIN_03
ctx->ip = (void *) uc->uc_mcontext->__ss.__eip;
ctx->bp = (void *) uc->uc_mcontext->__ss.__ebp;
ctx->sp = (void *) uc->uc_mcontext->__ss.__esp;
#else
ctx->ip = (void *) uc->uc_mcontext->ss.eip;
ctx->bp = (void *) uc->uc_mcontext->ss.ebp;
ctx->sp = (void *) uc->uc_mcontext->ss.esp;
#endif
}
/* The following from VirtualDub: */