Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index 7fc71a5fa59cf9221bca5c6184da3a407ce2c87b..c743f11b5d239960da691cb976407cb416e3c3dc 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -583,9 +583,11 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
#if __DARWIN_UNIX03 |
sample.pc = mcontext->__ss.__eip; |
sample.sp = mcontext->__ss.__esp; |
+ sample.fp = mcontext->__ss.__ebp; |
#else // !__DARWIN_UNIX03 |
sample.pc = mcontext->ss.eip; |
sample.sp = mcontext->ss.esp; |
+ sample.fp = mcontext->ss.ebp; |
#endif // __DARWIN_UNIX03 |
} |