[rfc] Unwind the ARM CPSR
Daniel Jacobowitz
drow@false.org
Thu May 1 18:35:00 GMT 2008
On Thu, May 01, 2008 at 02:30:48PM -0400, Daniel Jacobowitz wrote:
> That place is now gone. I've tested this version on arm-none-eabi
> (where it fixes one failure with -mthumb, gdb.base/ending-run.exp:
> step to end of run) and on arm-none-symbianelf.
>
> Checked in.
Correction to that patch. Sorry, this got tangled up in the other
patch I'm testing.
--
Daniel Jacobowitz
CodeSourcery
Index: src/gdb/arm-tdep.c
===================================================================
--- src.orig/gdb/arm-tdep.c 2008-05-01 13:56:01.000000000 -0400
+++ src/gdb/arm-tdep.c 2008-05-01 13:56:33.000000000 -0400
@@ -1162,15 +1190,13 @@ arm_dwarf2_prev_register (struct frame_i
case ARM_PS_REGNUM:
/* Reconstruct the T bit; see arm_prologue_prev_register for details. */
- CORE_ADDR lr, cpsr;
-
- cpsr = get_frame_register_unsigned (this_frame, prev_regnum);
+ cpsr = get_frame_register_unsigned (this_frame, regnum);
lr = frame_unwind_register_unsigned (this_frame, ARM_LR_REGNUM);
if (IS_THUMB_ADDR (lr))
cpsr |= CPSR_T;
else
cpsr &= ~CPSR_T;
- return frame_unwind_got_constant (this_frame, prev_regnum, cpsr);
+ return frame_unwind_got_constant (this_frame, regnum, cpsr);
default:
internal_error (__FILE__, __LINE__,
More information about the Gdb-patches
mailing list