From 1ca66634bd957b31bea95b1eddd6611b82ba42bb Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 31 Jul 2001 19:22:57 +0000 Subject: [PATCH] * config/i386/xm-i386.h: New file. * config/i386/xm-fbsd.h: Removed. * config/i386/xm-linux.h: Removed. * config/i386/fbsd.mh: Reorganize a bit. (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h. * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of xm-linux.h. --- gdb/ChangeLog | 10 ++++++++++ gdb/config/i386/fbsd.mh | 6 ++++-- gdb/config/i386/linux.mh | 6 ++++-- gdb/config/i386/xm-fbsd.h | 28 ---------------------------- gdb/config/i386/{xm-linux.h => xm-i386.h} | 20 +++++++++++--------- 5 files changed, 29 insertions(+), 41 deletions(-) delete mode 100644 gdb/config/i386/xm-fbsd.h rename gdb/config/i386/{xm-linux.h => xm-i386.h} (67%) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e33de3b..6deab1b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2001-07-31 Mark Kettenis + + * config/i386/xm-i386.h: New file. + * config/i386/xm-fbsd.h: Removed. + * config/i386/xm-linux.h: Removed. + * config/i386/fbsd.mh: Reorganize a bit. + (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h. + * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of + xm-linux.h. + 2001-07-30 Jim Blandy * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix. diff --git a/gdb/config/i386/fbsd.mh b/gdb/config/i386/fbsd.mh index 93e0702..8698d45 100644 --- a/gdb/config/i386/fbsd.mh +++ b/gdb/config/i386/fbsd.mh @@ -1,6 +1,8 @@ # Host: Intel 386 running FreeBSD + +XM_FILE= xm-i386.h XDEPFILES= + +NAT_FILE= nm-fbsd.h # NOTE: Do not spread NATDEPFILES over several lines - it hurts BSD make. NATDEPFILES= fork-child.o infptrace.o inftarg.o solib.o solib-svr4.o solib-legacy.o corelow.o core-aout.o core-regset.o i386-nat.o i387-nat.o i386bsd-nat.o i386fbsd-nat.o -XM_FILE= xm-fbsd.h -NAT_FILE= nm-fbsd.h diff --git a/gdb/config/i386/linux.mh b/gdb/config/i386/linux.mh index ee8ecea..25b88b4 100644 --- a/gdb/config/i386/linux.mh +++ b/gdb/config/i386/linux.mh @@ -1,6 +1,6 @@ -# Host: Intel 386 running GNU/Linux +# Host: Intel 386 running GNU/Linux. -XM_FILE= xm-linux.h +XM_FILE= xm-i386.h XDEPFILES= NAT_FILE= nm-linux.h @@ -8,4 +8,6 @@ NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o \ core-aout.o i386-nat.o i386-linux-nat.o i387-nat.o \ proc-service.o thread-db.o lin-lwp.o +# The dynamically loaded libthread_db needs access to symbols in the +# gdb executable. LOADLIBES = -ldl -rdynamic diff --git a/gdb/config/i386/xm-fbsd.h b/gdb/config/i386/xm-fbsd.h deleted file mode 100644 index afb918c..0000000 --- a/gdb/config/i386/xm-fbsd.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Host-dependent definitions for FreeBSD/i386. - Copyright 2000 Free Software Foundation, Inc. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - 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_FBSD_H -#define XM_FBSD_H - -#define HOST_BYTE_ORDER LITTLE_ENDIAN - -#define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext - -#endif /* XM_FBSD_H */ diff --git a/gdb/config/i386/xm-linux.h b/gdb/config/i386/xm-i386.h similarity index 67% rename from gdb/config/i386/xm-linux.h rename to gdb/config/i386/xm-i386.h index ee17ee9..c7d92c9 100644 --- a/gdb/config/i386/xm-linux.h +++ b/gdb/config/i386/xm-i386.h @@ -1,6 +1,5 @@ -/* Native support for GNU/Linux, for GDB, the GNU debugger. - Copyright 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001 - Free Software Foundation, Inc. +/* Host-dependent definitions for i386. + Copyright 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -19,14 +18,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef XM_LINUX_H -#define XM_LINUX_H +#ifndef XM_I386_H +#define XM_I386_H +#include "floatformat.h" + +/* FIXME: kettenis/2001-07-29: Get rid of HOST_BYTE_ORDER when Andrew + has erradicated it from the sources. */ #define HOST_BYTE_ORDER LITTLE_ENDIAN +#define HOST_FLOAT_FORMAT &floatformat_ieee_single_little +#define HOST_DOUBLE_FORMAT &floatformat_ieee_double_little #define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext -/* Need R_OK etc, but USG isn't defined. */ -#include - -#endif /* #ifndef XM_LINUX_H */ +#endif /* XM_386_H */ -- 2.7.4