* emultempl/mmo.em: Improve comments. Explain why there's
[deliverable/binutils-gdb.git] / gdb / lynx-nat.c
index 9f99b47d4b81fb05bbe89985a46980be8a5f9cdd..d66e5bd47c5005be920f213e189c609b84f86cc2 100644 (file)
@@ -1,6 +1,6 @@
 /* Native-dependent code for LynxOS.
 
-   Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2003 Free
+   Copyright (C) 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2003 Free
    Software Foundation, Inc.
 
    This file is part of GDB.
@@ -17,8 +17,8 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 #include "defs.h"
 #include "frame.h"
@@ -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.023621 seconds and 4 git commands to generate.