aboutsummaryrefslogtreecommitdiff
path: root/gdb/core-regset.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-01-27 18:51:09 +0000
committerFred Fish <fnf@specifix.com>1996-01-27 18:51:09 +0000
commit4708ac6573eb1956616e58e6c936a05938f4915a (patch)
tree751d0488a58dc7b9dbb594d28c40c93e803c5100 /gdb/core-regset.c
parent79edc8468f860448105028573e55426d205abf46 (diff)
downloadfsf-binutils-gdb-4708ac6573eb1956616e58e6c936a05938f4915a.zip
fsf-binutils-gdb-4708ac6573eb1956616e58e6c936a05938f4915a.tar.gz
fsf-binutils-gdb-4708ac6573eb1956616e58e6c936a05938f4915a.tar.bz2
* configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
Also check for gregset_t and fpregset_t types. * configure: Regenerate. * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H is defined. (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T and HAVE_FPREGSET_T are defined. These changes allow systems like linux that are migrating to /proc support to use a single configuration for both new and old versions. * config/i386/linux.mt: Note that this is now for both a.out and ELF systems. * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o, i386v4-nat.o * config/i386/tm-linux.h (tm-sysv4.h): Include. * config/i386/xm-linux.h (solib.h): Include (SVR4_SHARED_LIBS): Define. * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined. (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined. (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T defined.
Diffstat (limited to 'gdb/core-regset.c')
-rw-r--r--gdb/core-regset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/core-regset.c b/gdb/core-regset.c
index 5e10996..68b0845 100644
--- a/gdb/core-regset.c
+++ b/gdb/core-regset.c
@@ -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"
@@ -77,6 +79,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
int which;
unsigned int reg_addr; /* Unused in this version */
{
+#if defined (HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T)
gregset_t gregset;
fpregset_t fpregset;
@@ -106,6 +109,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
#endif
}
}
+#endif /* defined(HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T) */
}