2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / corelow.c
index 7be9655f8b31d52045e0577661023cd106a0f3f5..82e6d7d983387b5423d2ea5ab7abdfdc71c95da3 100644 (file)
@@ -503,7 +503,7 @@ get_core_registers (struct regcache *regcache, int regno)
                             ".reg-xfp", 3, "extended floating-point", 0);
 
   /* Supply dummy value for all registers not found in the core.  */
-  for (i = 0; i < NUM_REGS; i++)
+  for (i = 0; i < gdbarch_num_regs (current_gdbarch); i++)
     if (!regcache_valid_p (regcache, i))
       regcache_raw_supply (regcache, i, NULL);
 }
This page took 0.023978 seconds and 4 git commands to generate.