diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-05-01 18:32:52 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-05-01 18:32:52 +0000 |
commit | ca38c58efa3ca0ac1f632640c131db93164ac5f2 (patch) | |
tree | 190d3cbfaff5898781785debf21cdd60c6832eb2 | |
parent | b39cc96258b1a5fb23014fb3712f24a7578e1070 (diff) | |
download | gdb-ca38c58efa3ca0ac1f632640c131db93164ac5f2.zip gdb-ca38c58efa3ca0ac1f632640c131db93164ac5f2.tar.gz gdb-ca38c58efa3ca0ac1f632640c131db93164ac5f2.tar.bz2 |
Add lost bit of previous commit.
-rw-r--r-- | gdb/arm-tdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 080c0f5..50767fe 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1162,15 +1162,13 @@ arm_dwarf2_prev_register (struct frame_info *this_frame, void **this_cache, 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__, |