diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:59:43 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:59:43 +0000 |
commit | 505bbca2cdeb4809bf336824c45cdbb877c11ae5 (patch) | |
tree | fce4b046a7ef0cfc9fb6ca1dd8dbb1ac654e6a8a /gdb/iq2000-tdep.c | |
parent | b1a653ae154de10f92693517473d6dce51312832 (diff) | |
download | gdb-505bbca2cdeb4809bf336824c45cdbb877c11ae5.zip gdb-505bbca2cdeb4809bf336824c45cdbb877c11ae5.tar.gz gdb-505bbca2cdeb4809bf336824c45cdbb877c11ae5.tar.bz2 |
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.
Diffstat (limited to 'gdb/iq2000-tdep.c')
-rw-r--r-- | gdb/iq2000-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c index 04dd635..ab3b196 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; } |