* configure.in: Move termcap determination a later in the file to catch
[deliverable/binutils-gdb.git] / gdb / core-regset.c
index 5e10996cdda14bca4e4e3dbd954cb24a868fd223..d925abea74682af2da48f7c6ea606f7224169a38 100644 (file)
@@ -1,5 +1,5 @@
 /* Machine independent GDB support for core files on systems using "regsets".
-   Copyright 1993-1996 Free Software Foundation, Inc.
+   Copyright 1993-1998 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -35,7 +35,9 @@ regardless of whether or not the actual target has floating point hardware.
 #include "defs.h"
 
 #include <time.h>
+#ifdef HAVE_SYS_PROCFS_H
 #include <sys/procfs.h>
+#endif
 #include <fcntl.h>
 #include <errno.h>
 #include "gdb_string.h"
@@ -45,6 +47,10 @@ regardless of whether or not the actual target has floating point hardware.
 #include "command.h"
 #include "gdbcore.h"
 
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
+void _initialize_core_regset PARAMS ((void));
+
 /*
 
 GLOBAL FUNCTION
@@ -55,7 +61,7 @@ SYNOPSIS
 
        void fetch_core_registers (char *core_reg_sect,
                                          unsigned core_reg_size,
-                                         int which, unsigned in reg_addr)
+                                         int which, CORE_ADDR reg_addr)
 
 DESCRIPTION
 
@@ -75,8 +81,9 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
      char *core_reg_sect;
      unsigned core_reg_size;
      int which;
-     unsigned int reg_addr;    /* Unused in this version */
+     CORE_ADDR reg_addr;       /* Unused in this version */
 {
+#if defined (HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T)
   gregset_t gregset;
   fpregset_t fpregset;
 
@@ -106,6 +113,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
 #endif
        }
     }
+#endif /* defined(HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T) */
 }
 
 \f
This page took 0.023798 seconds and 4 git commands to generate.