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