This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Unwind the ARM CPSR
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Thu, 1 May 2008 14:35:10 -0400
- Subject: Re: [rfc] Unwind the ARM CPSR
- References: <20071011145137.GA18336@caradoc.them.org> <20080501183048.GA2875@caradoc.them.org>
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__,