Create new file regcache.h. Update all uses.
[deliverable/binutils-gdb.git] / gdb / ultra3-nat.c
index fea7d6fade32da32037695afbea79cb618cdfd24..f8d8f33e04c65bbf93aa031cb50fa74e42e65049 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for GDB, for NYU Ultra3 running Sym1 OS.
-   Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 2001 Free Software Foundation,
+   Inc.
    Contributed by David Wood (wood@nyu.edu) at New York University.
 
    This file is part of GDB.
@@ -25,6 +26,7 @@
 #include "inferior.h"
 #include "symtab.h"
 #include "value.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -37,7 +39,7 @@
 #include <sys/file.h>
 #include "gdb_stat.h"
 
-static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
 
 /* Assumes support for AMD's Binary Compatibility Standard
    for ptrace().  If you define ULTRA3, the ultra3 extensions to
@@ -64,8 +66,7 @@ struct ptrace_user pt_struct;
  */
 
 void
-fetch_inferior_registers (regno)
-     int regno;
+fetch_inferior_registers (int regno)
 {
   register int i, j, ret_val = 0;
   char buf[128];
@@ -142,8 +143,7 @@ fetch_inferior_registers (regno)
  */
 
 void
-store_inferior_registers (regno)
-     int regno;
+store_inferior_registers (int regno)
 {
   register unsigned int regaddr;
   char buf[80];
@@ -225,8 +225,7 @@ store_inferior_registers (regno)
  * NOTE: Assumes AMD's Binary Compatibility Standard for ptrace().
  */
 static void
-fetch_register (regno)
-     int regno;
+fetch_register (int regno)
 {
   char buf[128];
   int val;
@@ -257,14 +256,13 @@ fetch_register (regno)
 /* 
  * Read AMD's Binary Compatibilty Standard conforming core file.
  * struct ptrace_user is the first thing in the core file
+ *
+ * CORE_REG_SECT, CORE_REG_SIZE, WHICH, and REG_ADDR are all ignored.
  */
 
 static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
-     char *core_reg_sect;      /* Unused in this version */
-     unsigned core_reg_size;   /* Unused in this version */
-     int which;                        /* Unused in this version */
-     CORE_ADDR reg_addr;       /* Unused in this version */
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+                     int which, CORE_ADDR reg_addr)
 {
   register int regno;
   int val;
@@ -301,9 +299,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
  * will cause ptrace() to fail is returned.
  */
 CORE_ADDR
-register_addr (regno, blockend)
-     int regno;
-     CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
 {
   if ((regno >= LR0_REGNUM) && (regno < LR0_REGNUM + 128))
     {
@@ -361,7 +357,7 @@ static struct core_fns ultra3_core_fns =
 };
 
 void
-_initialize_core_ultra3 ()
+_initialize_core_ultra3 (void)
 {
   add_core_fns (&ultra3_core_fns);
 }
This page took 0.024497 seconds and 4 git commands to generate.