Fix IP vs. PC confusion in tests on ARM
The intention in the test cases is to print the "instruction pointer"
value at certain places, and on ARM we will want to get the Program
Counter in these cases. IP is a scratch register, and not very
interesting.
diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c
index a064b76..ed34e58 100644
--- a/tests/Gtest-trace.c
+++ b/tests/Gtest-trace.c
@@ -208,7 +208,7 @@
printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip);
#endif
#elif defined UNW_TARGET_ARM
- printf (" @ %lx", (unsigned long) uc->uc_mcontext.arm_ip);
+ printf (" @ %lx", (unsigned long) uc->uc_mcontext.arm_pc);
#endif
printf ("\n");
}
diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c
index 96752f2..d66c169 100644
--- a/tests/test-coredump-unwind.c
+++ b/tests/test-coredump-unwind.c
@@ -214,7 +214,7 @@
#elif defined(UNW_TARGET_X86_64)
ip = uc->uc_mcontext.gregs[REG_RIP];
#elif defined(UNW_TARGET_ARM)
- ip = uc->uc_mcontext.arm_ip;
+ ip = uc->uc_mcontext.arm_pc;
#endif
#elif defined(__FreeBSD__)
#ifdef __i386__