2004-09-12 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / lynx-nat.c
index 9f99b47d4b81fb05bbe89985a46980be8a5f9cdd..1517cb5d2ec5c78cfff1c226ad63668bd250996f 100644 (file)
@@ -313,7 +313,7 @@ fetch_inferior_registers (int regno)
        ptrace_fun = regno == SP_REGNUM ? PTRACE_PEEKUSP : PTRACE_PEEKTHREAD;
 #endif
        
-       for (i = 0; i < DEPRECATED_REGISTER_RAW_SIZE (regno); i += sizeof (int))
+       for (i = 0; i < register_size (current_gdbarch, regno); i += sizeof (int))
          {
            unsigned int reg;
            
@@ -325,7 +325,7 @@ fetch_inferior_registers (int regno)
            
            *(int *) &buf[i] = reg;
          }
-       supply_register (regno, buf);
+       regcache_raw_supply (current_regcache, regno, buf);
       }
   }
 }
@@ -362,7 +362,7 @@ store_inferior_registers (int regno)
       ptrace_fun = regno == SP_REGNUM ? PTRACE_POKEUSP : PTRACE_POKEUSER;
 #endif
 
-      for (i = 0; i < DEPRECATED_REGISTER_RAW_SIZE (regno); i += sizeof (int))
+      for (i = 0; i < register_size (current_gdbarch, regno); i += sizeof (int))
        {
          unsigned int reg;
 
@@ -593,8 +593,8 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
 
   for (regno = 0; regno < NUM_REGS; regno++)
     if (regmap[regno] != -1)
-      supply_register (regno, core_reg_sect + offsetof (st_t, ec)
-                      + regmap[regno]);
+      regcache_raw_supply (current_regcache, regno,
+                          core_reg_sect + offsetof (st_t, ec) + regmap[regno]);
 
 #ifdef SPARC
 /* Fetching this register causes all of the I & L regs to be read from the
This page took 0.023338 seconds and 4 git commands to generate.