Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 96ef899bc429f84fd5956de92b23aaa13c2e951b..1ce47b569d3d8f75ed2780179d94df0664e09f50 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -617,9 +617,11 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
#if defined (__arm__) || defined(__thumb__) |
sample.pc = mcontext.gregs[R15]; |
sample.sp = mcontext.gregs[R13]; |
+ sample.fp = mcontext.gregs[R11]; |
#else |
sample.pc = mcontext.gregs[REG_EIP]; |
sample.sp = mcontext.gregs[REG_ESP]; |
+ sample.fp = mcontext.gregs[REG_EBP]; |
#endif |
} |