diff options
-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 |