diff mbox

[2/5] ARM: tests/Gtest-trace.c - IP printing

Message ID 1303401162-14277-3-git-send-email-ken.werner@linaro.org
State Accepted
Commit a624812e2aef371b3901c44cc3201e5afdb01b60
Headers show

Commit Message

Ken Werner April 21, 2011, 3:52 p.m. UTC
Print the instruction pointer on ARM as well.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
---
 tests/Gtest-trace.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

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");
     }