* mmix.h (R_MMIX_PUSHJ_STUBBABLE): New reloc number.
[deliverable/binutils-gdb.git] / gdb / hppam3-nat.c
index aa89379d4ee94c9a92ea738b794335a7bc1355bb..cbee288c77896c3efb696aa18122b92a2c8b2e2f 100644 (file)
@@ -1,5 +1,7 @@
-/* Low level interface to HP800 running mach 4.0.
-   Copyright (C) 1995 Free Software Foundation, Inc.
+/* Low level interface to HP800 running mach 4.0 for GDB, the GNU
+   debugger.
+
+   Copyright 1995, 2000, 2001, 2003 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +23,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include <stdio.h>
 
@@ -37,8 +40,7 @@
  */
 
 void
-fetch_inferior_registers (regno)
-     int regno;
+fetch_inferior_registers (int regno)
 {
   kern_return_t ret;
   thread_state_data_t state;
@@ -76,13 +78,12 @@ fetch_inferior_registers (regno)
  * On mach3 all registers are always saved in one call.
  */
 void
-store_inferior_registers (regno)
-     int regno;
+store_inferior_registers (int regno)
 {
   kern_return_t ret;
   thread_state_data_t state;
   unsigned int stateCnt = TRACE_FLAVOR_SIZE;
-  register int index;
+  int index;
 
   if (!MACH_PORT_VALID (current_thread))
     error ("store inferior registers: Invalid thread");
@@ -114,15 +115,15 @@ store_inferior_registers (regno)
    */
   if (regno > 0 && regno < NUM_REGS)
     {
-      memcpy (&state[regno], &registers[REGISTER_BYTE (regno)],
-             REGISTER_RAW_SIZE (regno));
+      memcpy (&state[regno], &deprecated_registers[DEPRECATED_REGISTER_BYTE (regno)],
+             DEPRECATED_REGISTER_RAW_SIZE (regno));
     }
   else
     {
       for (index = 0; index < NUM_REGS; index++)
-       memcpy (&state[index], &registers[REGISTER_BYTE (index)],
-               REGISTER_RAW_SIZE (index));
-/*      state[index] = registers[REGISTER_BYTE (index)]; */
+       memcpy (&state[index], &deprecated_registers[DEPRECATED_REGISTER_BYTE (index)],
+               DEPRECATED_REGISTER_RAW_SIZE (index));
+/*      state[index] = deprecated_registers[DEPRECATED_REGISTER_BYTE (index)]; */
 
     }
 
This page took 0.024307 seconds and 4 git commands to generate.