* cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
authorDaniel Jacobowitz <drow@false.org>
Mon, 30 Jun 2008 14:00:38 +0000 (14:00 +0000)
committerDaniel Jacobowitz <drow@false.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 cea722e10132c1024b0986e51745442fa8ece786..6dcb3cd6b31a915de5957536e7c78f5c1ff847c6 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 12ef14999086c895547495343549afbf76ab1fa0..d2c0c2ca63ab5db7a009c53eb1f487a3b76cead1 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)
     {