* arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.

This commit is contained in:
Ben Harris
2006-11-12 11:06:31 +00:00
parent 7e38eb0a58
commit 59ea4f7003
2 changed files with 5 additions and 1 deletions

View File

@@ -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.

View File

@@ -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