Print the instruction pointer on ARM as well.

Signed-off-by: Ken Werner <[email protected]>
---
 tests/Gtest-trace.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c
index 311848f..b4c0bfc 100644
--- a/tests/Gtest-trace.c
+++ b/tests/Gtest-trace.c
@@ -211,6 +211,8 @@ sighandler (int signal, void *siginfo, void *context)
 #elif defined __FreeBSD__
       printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip);
 #endif
+#elif defined UNW_TARGET_ARM
+      printf (" @ %lx", (unsigned long) uc->uc_mcontext.arm_ip);
 #endif
       printf ("\n");
     }
-- 
1.7.4.1


_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to