aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
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/config
parent79edc8468f860448105028573e55426d205abf46 (diff)
downloadgdb-4708ac6573eb1956616e58e6c936a05938f4915a.zip
gdb-4708ac6573eb1956616e58e6c936a05938f4915a.tar.gz
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/config')
-rw-r--r--gdb/config/i386/xm-linux.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/config/i386/xm-linux.h b/gdb/config/i386/xm-linux.h
index be35056..3fbd88bb 100644
--- a/gdb/config/i386/xm-linux.h
+++ b/gdb/config/i386/xm-linux.h
@@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef XM_LINUX_H
+#define XM_LINUX_H
+
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#define HAVE_TERMIOS
@@ -29,3 +32,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Need R_OK etc, but USG isn't defined. */
#include <unistd.h>
+
+
+/*
+ * We define this because with ELF we use SVR4 style shared libraries.
+ */
+
+#include "solib.h" /* Support for shared libraries. */
+
+#define SVR4_SHARED_LIBS
+
+#endif /* #ifndef XM_LINUX_H */