2007-10-30 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:59:43 +0000 (21:59 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:59:43 +0000 (21:59 +0000)
* iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
at the current architecture by frame_info.

gdb/ChangeLog
gdb/iq2000-tdep.c

index 3f7897977083cf36deac5baae906bc5a4f1b945f..ac3fc74ea3e0c88336423ad15922cee3e74d75b1 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-30  Markus Deuling  <deuling@de.ibm.com>
+
+       * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
+       at the current architecture by frame_info.
+
 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
 
        * inf-child.c (inf_child_fetch_inferior_registers): Use 
index 04dd6359593b71a6500bb0687dc795b9694b6de6..ab3b1963d985f694e1695d642268e9d630e58518 100644 (file)
@@ -417,7 +417,8 @@ iq2000_frame_prev_register (struct frame_info *next_frame, void **this_cache,
       *addrp = cache->saved_regs[regnum];
       *realnump = -1;
       if (valuep)
-        read_memory (*addrp, valuep, register_size (current_gdbarch, regnum));
+        read_memory (*addrp, valuep,
+                    register_size (get_frame_arch (next_frame), regnum));
       return;
     }