Bug 731272 - Add the current instruction to the top of the stack. r=jrmuizel

This commit is contained in:
Markus Stange 2012-03-22 23:31:56 +01:00
parent f6f0ce905e
commit 5a9842b561

View File

@ -523,6 +523,10 @@ void TableTicker::doBacktrace(ThreadProfile &aProfile, TickSample* aSample)
mozilla::ArrayLength(pc_array),
0
};
// Start with the current function.
StackWalkCallback(aSample->pc, &array);
#ifdef XP_MACOSX
pthread_t pt = GetProfiledThread(platform_data());
void *stackEnd = reinterpret_cast<void*>(-1);