aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68klinux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m68klinux-nat.c')
-rw-r--r--gdb/m68klinux-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index 8f5b7c2..6844f51 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -166,7 +166,7 @@ old_fetch_inferior_registers (struct regcache *regcache, int regno)
}
else
{
- for (regno = 0; regno < NUM_REGS; regno++)
+ for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
{
fetch_register (regcache, regno);
}
@@ -228,7 +228,7 @@ old_store_inferior_registers (const struct regcache *regcache, int regno)
}
else
{
- for (regno = 0; regno < NUM_REGS; regno++)
+ for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
{
store_register (regcache, regno);
}