From 4708ac6573eb1956616e58e6c936a05938f4915a Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 27 Jan 1996 18:51:09 +0000 Subject: * 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. --- gdb/core-regset.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/core-regset.c') 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 +#ifdef HAVE_SYS_PROCFS_H #include +#endif #include #include #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) */ } -- cgit v1.1