From 505bbca2cdeb4809bf336824c45cdbb877c11ae5 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 30 Oct 2007 21:59:43 +0000 Subject: [PATCH] 2007-10-30 Markus Deuling * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get at the current architecture by frame_info. --- gdb/ChangeLog | 5 +++++ gdb/iq2000-tdep.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3f789797708..ac3fc74ea3e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Markus Deuling + + * 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 * inf-child.c (inf_child_fetch_inferior_registers): Use diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c index 04dd6359593..ab3b1963d98 100644 --- a/gdb/iq2000-tdep.c +++ b/gdb/iq2000-tdep.c @@ -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; } -- 2.30.2