Bug 1233666 - Remove hacks for getting frame pointer for x86/x64 gcc.
--- a/mozglue/misc/StackWalk.cpp
+++ b/mozglue/misc/StackWalk.cpp
@@ -891,25 +891,17 @@ MozStackWalk(MozWalkStackCallback aCallb
uint32_t aMaxFrames, void* aClosure, uintptr_t aThread,
void* aPlatformData)
{
MOZ_ASSERT(!aThread);
MOZ_ASSERT(!aPlatformData);
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
stackEnd = __libc_stack_end;
#else
stackEnd = reinterpret_cast<void*>(-1);
#endif
return FramePointerStackWalk(aCallback, aSkipFrames, aMaxFrames,