diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:58:58 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:58:58 +0000 |
commit | b1a653ae154de10f92693517473d6dce51312832 (patch) | |
tree | 13265a78ad79bccee78479def38f0001a8387511 /gdb/inf-child.c | |
parent | 2007-10-30 Markus Deuling <deuling@de.ibm.com> (diff) | |
download | binutils-gdb-b1a653ae154de10f92693517473d6dce51312832.tar.gz binutils-gdb-b1a653ae154de10f92693517473d6dce51312832.tar.bz2 binutils-gdb-b1a653ae154de10f92693517473d6dce51312832.zip |
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* inf-child.c (inf_child_fetch_inferior_registers): Use
get_regcache_arch to get at the current architecture by regcache.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r-- | gdb/inf-child.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c index 5e08cd66dbc..da613d0398f 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -35,7 +35,9 @@ inf_child_fetch_inferior_registers (struct regcache *regcache, int regnum) { if (regnum == -1) { - for (regnum = 0; regnum < gdbarch_num_regs (current_gdbarch); regnum++) + for (regnum = 0; + regnum < gdbarch_num_regs (get_regcache_arch (regcache)); + regnum++) regcache_raw_supply (regcache, regnum, NULL); } else |