From 5554c84538ff6c565a9476d09488dfe2e1cc0a66 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 21 May 2011 16:30:29 -0400 Subject: [PATCH] Leopard fix (hopefully). Needs testing on other Linux OSes to see what other changes need to take place. --- src/archutils/Unix/Backtrace.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/archutils/Unix/Backtrace.cpp b/src/archutils/Unix/Backtrace.cpp index ac61d6bcf5..5e82bd4838 100644 --- a/src/archutils/Unix/Backtrace.cpp +++ b/src/archutils/Unix/Backtrace.cpp @@ -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: */