[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 6/8] Fix IP vs. PC confusion in tests on ARM
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 6/8] Fix IP vs. PC confusion in tests on ARM |
Date: |
Tue, 31 Jul 2012 23:06:32 +0300 |
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.
---
tests/Gtest-trace.c | 2 +-
tests/test-coredump-unwind.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 @@ sighandler (int signal, void *siginfo, void *context)
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 @@ void handle_sigsegv(int sig, siginfo_t *info, void
*ucontext)
#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__
--
1.7.9.5
- [Libunwind-devel] [PATCH 0/8] misc fixes, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 1/8] Rip out AC_TYPE_SIGNAL and sighandler_t check, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 3/8] IA64: use tdep_find_unwind_table() in coredump lib, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 2/8] Allow IA64 cross-compilation, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 4/8] Fix --enable-debug-frame build, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 5/8] IA64: `ent' needed conditionally in Gtables.c, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 6/8] Fix IP vs. PC confusion in tests on ARM,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 7/8] Use unw_context_t instead of ucontext_t in tests/Gtest-trace.c and tests/Gtest-bt.c, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 8/8] Fix typo in unw_get_proc_name documentation, Tommi Rantala, 2012/07/31