2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
[deliverable/binutils-gdb.git] / gdb / m68klinux-nat.c
index 8f5b7c2ed5e0ab5284de79a3466b4048656bbe78..9d68cf854862f5c5b5cc795934d2d356aeeeeb1b 100644 (file)
@@ -55,7 +55,7 @@
 /* Prototypes for supply_gregset etc. */
 #include "gregset.h"
 \f
-/* This table must line up with REGISTER_NAME in "m68k-tdep.c".  */
+/* This table must line up with gdbarch_register_name in "m68k-tdep.c".  */
 static const int regmap[] =
 {
   PT_D0, PT_D1, PT_D2, PT_D3, PT_D4, PT_D5, PT_D6, PT_D7,
@@ -146,7 +146,7 @@ fetch_register (struct regcache *regcache, int regno)
       if (errno != 0)
        {
          sprintf (mess, "reading register %s (#%d)", 
-                  REGISTER_NAME (regno), regno);
+                  gdbarch_register_name (current_gdbarch, regno), regno);
          perror_with_name (mess);
        }
     }
@@ -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);
        }
@@ -209,7 +209,7 @@ store_register (const struct regcache *regcache, int regno)
       if (errno != 0)
        {
          sprintf (mess, "writing register %s (#%d)", 
-                  REGISTER_NAME (regno), regno);
+                  gdbarch_register_name (current_gdbarch, regno), regno);
          perror_with_name (mess);
        }
     }
@@ -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.023827 seconds and 4 git commands to generate.