diff options
author | Daniel Jacobowitz <dan@debian.org> | 2008-06-30 14:00:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2008-06-30 14:00:38 +0000 |
commit | 9e61970220109cd831138e970336a34d27808d58 (patch) | |
tree | fea870ec253b3f84ed1a37aeff490dcccb19e4ca /gdb/cris-tdep.c | |
parent | c132c6a2892e2f040d5272d008afe3fc8afc2af3 (diff) | |
download | gdb-9e61970220109cd831138e970336a34d27808d58.tar.gz |
* 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 12ef1499908..d2c0c2ca63a 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) { |