diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-06-30 14:00:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-06-30 14:00:38 +0000 |
commit | 395f2fc22d0bfcc4c994f33266ef1d21444d754a (patch) | |
tree | d6c3275ff589f79be8008d0b26ccf65f61570f4e /gdb/cris-tdep.c | |
parent | 8340a3fbbe6c254754ef20aeb47125af2a1d5d86 (diff) | |
download | gdb-395f2fc22d0bfcc4c994f33266ef1d21444d754a.zip gdb-395f2fc22d0bfcc4c994f33266ef1d21444d754a.tar.gz gdb-395f2fc22d0bfcc4c994f33266ef1d21444d754a.tar.bz2 |
* cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
register, not the previous frame's.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r-- | gdb/cris-tdep.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 12ef149..d2c0c2c 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -474,18 +474,11 @@ crisv32_single_step_through_delay (struct gdbarch *gdbarch, struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); ULONGEST erp; int ret = 0; - char buf[4]; if (cris_mode () == cris_mode_guru) - { - frame_unwind_register (this_frame, NRP_REGNUM, buf); - } + erp = get_frame_register_unsigned (this_frame, NRP_REGNUM); else - { - frame_unwind_register (this_frame, ERP_REGNUM, buf); - } - - erp = extract_unsigned_integer (buf, 4); + erp = get_frame_register_unsigned (this_frame, ERP_REGNUM); if (erp & 0x1) { |