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 | 3b3b142300dd9f35e12311263b1004b9618baa6b (diff) | |
download | gdb-b1a653ae154de10f92693517473d6dce51312832.zip gdb-b1a653ae154de10f92693517473d6dce51312832.tar.gz gdb-b1a653ae154de10f92693517473d6dce51312832.tar.bz2 |
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 5e08cd6..da613d0 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 |