Bug 761287 - Follow-up to fix TableTicker.cpp bustage; r=ehsan

This commit is contained in:
Jim Chen 2012-11-13 15:54:14 -05:00
parent 5f1884b5c7
commit 8f01552b67

View File

@ -834,7 +834,7 @@ void TableTicker::doBacktrace(ThreadProfile &aProfile, TickSample* aSample)
// handle it correctly.
unw_tdep_context_t *unw_ctx = reinterpret_cast<unw_tdep_context_t*> (&uc);
mcontext_t& mcontext = reinterpret_cast<ucontext_t*> (aSample->context)->uc_mcontext;
#define REPLACE_REG(num) unw_ctx->regs[num] = mcontext.gregs[R##num]
#define REPLACE_REG(num) unw_ctx->regs[num] = (&mcontext.arm_r0)[num]
REPLACE_REG(0);
REPLACE_REG(1);
REPLACE_REG(2);