OSDN Git Service

* cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
authorDaniel Jacobowitz <dan@debian.org>
Mon, 30 Jun 2008 14:00:38 +0000 (14:00 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Mon, 30 Jun 2008 14:00:38 +0000 (14:00 +0000)
register, not the previous frame's.

gdb/ChangeLog
gdb/cris-tdep.c

index cea722e..6dcb3cd 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
+       register, not the previous frame's.
+
 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
 
        * source.c (select_source_symtab): Make sure we skip namespace
index 12ef149..d2c0c2c 100644 (file)
@@ -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)
     {