aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@netbsd.org>2006-11-12 11:06:31 +0000
committerBen Harris <bjh21@netbsd.org>2006-11-12 11:06:31 +0000
commit59ea4f7003b1757990f4c258975b22d533a52002 (patch)
tree1181f21a413d2be8d56a0c8bfaa8dd856c98de05
parent7e38eb0a5804eb5d6463c44ae86940479de9a4c3 (diff)
downloadgdb-59ea4f7003b1757990f4c258975b22d533a52002.zip
gdb-59ea4f7003b1757990f4c258975b22d533a52002.tar.gz
gdb-59ea4f7003b1757990f4c258975b22d533a52002.tar.bz2
* arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/arm-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e6a4cc4..3b807cb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2006-11-12 Ben Harris <bjh21@NetBSD.org>
+
+ * arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.
+
2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
* frame.c (frame_register_unwind_location): New function.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 2d231ad..eaa089f 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1046,7 +1046,7 @@ arm_unwind_pc (struct gdbarch *gdbarch, struct frame_info *this_frame)
{
CORE_ADDR pc;
pc = frame_unwind_register_unsigned (this_frame, ARM_PC_REGNUM);
- return IS_THUMB_ADDR (pc) ? UNMAKE_THUMB_ADDR (pc) : pc;
+ return arm_addr_bits_remove (pc);
}
static CORE_ADDR