2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / monitor.c
index 494df39d0fd5f60b794ff3f312e69df68ef6e5e9..550f8afa80be5df728e2c92758ae0decaf22b586 100644 (file)
@@ -1279,7 +1279,7 @@ monitor_fetch_registers (struct regcache *regcache, int regno)
          return;
        }
 
-      for (regno = 0; regno < NUM_REGS; regno++)
+      for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
        monitor_fetch_register (regcache, regno);
     }
   else
@@ -1356,7 +1356,7 @@ monitor_store_registers (struct regcache *regcache, int regno)
       return;
     }
 
-  for (regno = 0; regno < NUM_REGS; regno++)
+  for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
     monitor_store_register (regcache, regno);
 }
 
This page took 0.027652 seconds and 4 git commands to generate.