mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 1233666 - Remove hacks for getting frame pointer for x86/x64 gcc. r=glandium
--HG-- extra : rebase_source : 9cc0a57f1e4ea1adcfff042d66989b211f350474 extra : source : 2043802666545a9b15c1139ec4b06bddc4432117
This commit is contained in:
parent
0b73efd883
commit
be8158f64c
@ -896,15 +896,7 @@ MozStackWalk(MozWalkStackCallback aCallback, uint32_t aSkipFrames,
|
||||
StackWalkInitCriticalAddress();
|
||||
|
||||
// Get the frame pointer
|
||||
void** bp;
|
||||
#if defined(__i386)
|
||||
__asm__("movl %%ebp, %0" : "=g"(bp));
|
||||
#else
|
||||
// It would be nice if this worked uniformly, but at least on i386 and
|
||||
// x86_64, it stopped working with gcc 4.1, because it points to the
|
||||
// end of the saved registers instead of the start.
|
||||
bp = (void**)__builtin_frame_address(0);
|
||||
#endif
|
||||
void** bp = (void**)__builtin_frame_address(0);
|
||||
|
||||
void* stackEnd;
|
||||
#if HAVE___LIBC_STACK_END
|
||||
|
Loading…
Reference in New Issue
Block a user