From a624812e2aef371b3901c44cc3201e5afdb01b60 Mon Sep 17 00:00:00 2001
From: Ken Werner <ken.werner@linaro.org>
Date: Wed, 6 Apr 2011 10:36:49 +0200
Subject: [PATCH] ARM: tests/Gtest-trace.c - IP printing

Print the instruction pointer on ARM as well.

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

diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c
index 311848f2..b4c0bfcd 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");
     }