2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / m68klinux-nat.c
index 8f5b7c2ed5e0ab5284de79a3466b4048656bbe78..6844f51d7945d7dfa361ecd1b6ad15cfaa0f1053 100644 (file)
@@ -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);
        }
This page took 0.030058 seconds and 4 git commands to generate.