2004-10-08 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / hppah-nat.c
index f9d4585c5df3c85bdb1b32fd3881c17cae4fa9b5..3979ecef3b8411ba2e2c0b05a0b7bc7d5ec93574 100644 (file)
@@ -1,7 +1,7 @@
-/* Native support code for HPUX PA-RISC.
-   Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
-   1998, 1999, 2000, 2001
-   Free Software Foundation, Inc.
+/* Native support code for HPUX PA-RISC, for GDB the GNU debugger.
+
+   Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
+   1996, 1998, 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
 
    Contributed by the Center for Software Science at the
    University of Utah (pa-gdb-bugs@cs.utah.edu).
@@ -95,7 +95,7 @@ store_inferior_registers (int regno)
        return;
 
       offset = 0;
-      len = DEPRECATED_REGISTER_RAW_SIZE (regno);
+      len = register_size (current_gdbarch, regno);
 
       /* Requests for register zero actually want the save_state's
         ss_flags member.  As RM says: "Oh, what a hack!"  */
@@ -106,11 +106,10 @@ store_inferior_registers (int regno)
          len = sizeof (ss.ss_flags);
 
          /* Note that ss_flags is always an int, no matter what
-            DEPRECATED_REGISTER_RAW_SIZE(0) says.  Assuming all HP-UX
-            PA machines are big-endian, put it at the least
-            significant end of the value, and zap the rest of the
-            buffer.  */
-         offset = DEPRECATED_REGISTER_RAW_SIZE (0) - len;
+            register_size (0) says.  Assuming all HP-UX PA machines
+            are big-endian, put it at the least significant end of
+            the value, and zap the rest of the buffer.  */
+         offset = register_size (current_gdbarch, 0) - len;
        }
 
       /* Floating-point registers come from the ss_fpblock area.  */
@@ -213,7 +212,7 @@ fetch_register (int regno)
   int i;
 
   offset = 0;
-  len = DEPRECATED_REGISTER_RAW_SIZE (regno);
+  len = register_size (current_gdbarch, regno);
 
   /* Requests for register zero actually want the save_state's
      ss_flags member.  As RM says: "Oh, what a hack!"  */
@@ -224,10 +223,10 @@ fetch_register (int regno)
       len = sizeof (ss.ss_flags);
 
       /* Note that ss_flags is always an int, no matter what
-        DEPRECATED_REGISTER_RAW_SIZE(0) says.  Assuming all HP-UX PA
-        machines are big-endian, put it at the least significant end
-        of the value, and zap the rest of the buffer.  */
-      offset = DEPRECATED_REGISTER_RAW_SIZE (0) - len;
+        register_size (0) says.  Assuming all HP-UX PA machines are
+        big-endian, put it at the least significant end of the value,
+        and zap the rest of the buffer.  */
+      offset = register_size (current_gdbarch, 0) - len;
       memset (buf, 0, sizeof (buf));
     }
 
@@ -290,10 +289,10 @@ fetch_register (int regno)
    to debugger memory starting at MYADDR.   Copy to inferior if
    WRITE is nonzero.
 
-   Returns the length copied, which is either the LEN argument or zero.
-   This xfer function does not do partial moves, since child_ops
-   doesn't allow memory operations to cross below us in the target stack
-   anyway.  TARGET is ignored.  */
+   Returns the length copied, which is either the LEN argument or
+   zero.  This xfer function does not do partial moves, since
+   deprecated_child_ops doesn't allow memory operations to cross below
+   us in the target stack anyway.  TARGET is ignored.  */
 
 int
 child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
This page took 0.024467 seconds and 4 git commands to generate.