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 | |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/inf-child.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9cecfd..3f78979 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. + +2007-10-30 Markus Deuling <deuling@de.ibm.com> + * inf-ptrace.c (inf_ptrace_fetch_registers) (inf_ptrace_fetch_register, inf_ptrace_store_register) (inf_ptrace_store_registers): Use get_regcache_arch to get at the 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 |