2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / remote-mips.c
index 5c2954db2470471e80cc8b9b084231f35d7b9879..38c5e2a7dda4a044301e81b9b019a383ac83e612 100644 (file)
@@ -1899,7 +1899,7 @@ mips_fetch_registers (struct regcache *regcache, int regno)
 
   if (regno == -1)
     {
-      for (regno = 0; regno < NUM_REGS; regno++)
+      for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
        mips_fetch_registers (regcache, regno);
       return;
     }
@@ -1960,7 +1960,7 @@ mips_store_registers (struct regcache *regcache, int regno)
 
   if (regno == -1)
     {
-      for (regno = 0; regno < NUM_REGS; regno++)
+      for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
        mips_store_registers (regcache, regno);
       return;
     }
This page took 0.025097 seconds and 4 git commands to generate.