2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / irix5-nat.c
index 880568e96dd4e9e569ef45266f0aff9dcf4e2504..9769da2263d0fcbde10b16a10a2863cdb936a5bd 100644 (file)
@@ -253,13 +253,13 @@ fetch_core_registers (struct regcache *regcache,
 
   /* If regsize is 8, this is a N32 or N64 core file.
      If regsize is 4, this is an O32 core file.  */
-  if (core_reg_size != regsize * NUM_REGS)
+  if (core_reg_size != regsize * gdbarch_num_regs (current_gdbarch))
     {
       warning (_("wrong size gregset struct in core file"));
       return;
     }
 
-  for (regno = 0; regno < NUM_REGS; regno++)
+  for (regno = 0; regno < gdbarch_num_regs (current_gdbarch); regno++)
     {
       regcache_raw_supply (regcache, regno, srcp);
       srcp += regsize;
This page took 0.026619 seconds and 4 git commands to generate.