This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Rationalize i386 & AMD64 *BSD configurations


The main reason for doing this was removing the inconsistencies in the
shared library handles.  Some targets were adding the support files in
thier .mh file, others in the .mt file.  The BSD's have support for
the old SunOS-style a.out shared libraries and/or the new SVR4-style
ELF shared libraries.  For the former, we only have native support.
Therefore I made sure that the SVR4 stuff is added by the .mt file and
that the SunOS stuff is added by the .mh file (when supported).  The
rest of the patch is fall-out from this decision and an attempt to
unify things a bit.

Tested on:

i386-unknown-freebsd4.7		FreeBSD 4.7-RELEASE-p20
i386-unknown-freebsd5.0		FreeBSD 5.0-CURRENT
i386-unknown-netbsdelf1.6.1	NetBSD 1.6.1
i386-unknown-openbsd3.0		OpenBSD 3.0
x86_64-unknown-freebsd5.2	FreeBSD 5.2-CURRENT
x86_64-unknown-netbsd1.6ZG	NetBSD 1.6ZG
x86_64-unknown-openbsd3.4	OpenBSD 3.4-current

Committed,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* amd64fbsd-tdep.c: Include "solib-svr4.h".
	(amd64fbsd_init_abi): Set link map offsets.
	* amd64nbsd-tdep.c: Include "slib-svr4.h".
	(amd64nbsd_init_abi): Set link map offsets.
	* amd64obsd-tdep.c: Include "solib-svr4.h".
	(amd64obsd_init_abi): Set link map offsets.
	* i386fbsd-tdep.c: Include "solib-svr4.h".
	(i386fbsd_init_abi): Set link map offsets.
	* i386nbsd-tdep.c: Include "solib-svr4.h".
	(i386nbsdelf_init_abi): Set link map offsets.
	* Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
	(amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
	* config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
	solib-legacy.o and core-aout.o. Reformat.
	* config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
	solib-svr4.o, solib-legacy.o.  Reformat.
	* config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
	* config/i386/nbsdelf.mh: Reformat.
	* config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
	solib-svr4.o, solib-legacy.o and corelow.o.
	* config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
	* config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
	solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
	* config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
	* config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
	(TM_FILE): Set to tm-fbsd.h.
	* config/i386/nbsd.mt (TDEPFILES): Reformat.
	* config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
	solib-svr4.o.
	* config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
	solib-svr4.o.
	(TM_FILE): Set to nm-nbsd.h.
	* config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
	Simplify shared library support.  Don't include "elf/common.h".
	(SVR4_SHARED_LIBS): Don't define.
	* config/i386/nm-fbsd64.h: Update copyright year.  Don't include
	"solib.h".
	* config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
	config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
	* config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
	Don't include "i386/tm-i386.h".  Include "solib.h".
	* config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
	Don't include "i386/tm-i386.h".
	* config/i386/xm-i386.h: Update copyright year.  Tweak comments.
	* config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
	Include "i386/xm-i386.h".
	(HOST_LONG_DOUBLE_FORMAT): Remove.

Index: amd64fbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64fbsd-tdep.c,v
retrieving revision 1.5
diff -u -p -r1.5 amd64fbsd-tdep.c
--- amd64fbsd-tdep.c 10 Jan 2004 12:52:41 -0000 1.5
+++ amd64fbsd-tdep.c 22 Feb 2004 16:19:41 -0000
@@ -29,6 +29,7 @@
 #include "gdb_string.h"
 
 #include "x86-64-tdep.h"
+#include "solib-svr4.h"
 
 /* Support for signal handlers.  */
 
@@ -136,6 +137,10 @@ amd64fbsd_init_abi (struct gdbarch_info 
   tdep->sigcontext_addr = amd64fbsd_sigcontext_addr;
   tdep->sc_reg_offset = amd64fbsd_sc_reg_offset;
   tdep->sc_num_regs = ARRAY_SIZE (amd64fbsd_sc_reg_offset);
+
+  /* FreeBSD uses SVR4-style shared libraries.  */
+  set_solib_svr4_fetch_link_map_offsets
+    (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
 
Index: amd64nbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64nbsd-tdep.c,v
retrieving revision 1.2
diff -u -p -r1.2 amd64nbsd-tdep.c
--- amd64nbsd-tdep.c 10 Jan 2004 12:52:41 -0000 1.2
+++ amd64nbsd-tdep.c 22 Feb 2004 16:19:41 -0000
@@ -27,8 +27,9 @@
 
 #include "gdb_assert.h"
 
-#include "nbsd-tdep.h"
 #include "x86-64-tdep.h"
+#include "nbsd-tdep.h"
+#include "solib-svr4.h"
 
 /* Support for signal handlers.  */
 
@@ -98,6 +99,7 @@ amd64nbsd_init_abi (struct gdbarch_info 
 
   /* NetBSD has its own convention for signal trampolines.  */
   set_gdbarch_pc_in_sigtramp (gdbarch, nbsd_pc_in_sigtramp);
+  tdep->sigcontext_addr = amd64nbsd_sigcontext_addr;
 
   /* Initialize the array with register offsets in `struct
      sigcontext'.  This `struct sigcontext' has an sc_mcontext member
@@ -113,7 +115,9 @@ amd64nbsd_init_abi (struct gdbarch_info 
 	tdep->sc_reg_offset[i] = 32 + amd64nbsd_r_reg_offset[i];
     }
 
-  tdep->sigcontext_addr = amd64nbsd_sigcontext_addr;
+  /* NetBSD uses SVR4-style shared libraries.  */
+  set_solib_svr4_fetch_link_map_offsets
+    (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
 
Index: amd64obsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64obsd-tdep.c,v
retrieving revision 1.3
diff -u -p -r1.3 amd64obsd-tdep.c
--- amd64obsd-tdep.c 22 Feb 2004 00:11:29 -0000 1.3
+++ amd64obsd-tdep.c 22 Feb 2004 16:19:41 -0000
@@ -31,6 +31,7 @@
 
 #include "x86-64-tdep.h"
 #include "i387-tdep.h"
+#include "solib-svr4.h"
 
 /* Support for core dumps.  */
 
@@ -198,6 +199,10 @@ amd64obsd_init_abi (struct gdbarch_info 
   tdep->sigcontext_addr = amd64obsd_sigcontext_addr;
   tdep->sc_reg_offset = amd64obsd_sc_reg_offset;
   tdep->sc_num_regs = ARRAY_SIZE (amd64obsd_sc_reg_offset);
+
+  /* OpenBSD uses SVR4-style shared libraries.  */
+  set_solib_svr4_fetch_link_map_offsets
+    (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
 
Index: i386fbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386fbsd-tdep.c,v
retrieving revision 1.2
diff -u -p -r1.2 i386fbsd-tdep.c
--- i386fbsd-tdep.c 22 Feb 2004 11:19:15 -0000 1.2
+++ i386fbsd-tdep.c 22 Feb 2004 16:19:41 -0000
@@ -25,6 +25,7 @@
 
 #include "i386-tdep.h"
 #include "i387-tdep.h"
+#include "solib-svr4.h"
 
 /* FreeBSD 3.0-RELEASE or later.  */
 
@@ -101,8 +102,10 @@ i386fbsd_init_abi (struct gdbarch_info i
   i386_elf_init_abi (info, gdbarch);
 
   /* FreeBSD ELF uses SVR4-style shared libraries.  */
-  set_gdbarch_in_solib_call_trampoline (gdbarch,
-					generic_in_solib_call_trampoline);
+  set_gdbarch_in_solib_call_trampoline
+    (gdbarch, generic_in_solib_call_trampoline);
+  set_solib_svr4_fetch_link_map_offsets
+    (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
 /* FreeBSD 4.0-RELEASE or later.  */
Index: i386nbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386nbsd-tdep.c,v
retrieving revision 1.18
diff -u -p -r1.18 i386nbsd-tdep.c
--- i386nbsd-tdep.c 18 Feb 2004 17:04:36 -0000 1.18
+++ i386nbsd-tdep.c 22 Feb 2004 16:19:41 -0000
@@ -1,6 +1,7 @@
 /* Target-dependent code for NetBSD/i386.
 
-   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000, 2001, 2002, 2003
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000, 2001, 2002,
+   2003, 2004
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -33,7 +34,6 @@
 #include "i386-tdep.h"
 #include "i387-tdep.h"
 #include "nbsd-tdep.h"
-
 #include "solib-svr4.h"
 
 /* From <machine/reg.h>.  */
@@ -267,10 +267,10 @@ i386nbsdelf_init_abi (struct gdbarch_inf
   i386_elf_init_abi (info, gdbarch);
 
   /* NetBSD ELF uses SVR4-style shared libraries.  */
-  set_gdbarch_in_solib_call_trampoline (gdbarch,
-                                        generic_in_solib_call_trampoline);
+  set_gdbarch_in_solib_call_trampoline
+    (gdbarch, generic_in_solib_call_trampoline);
   set_solib_svr4_fetch_link_map_offsets
-    (gdbarch, nbsd_ilp32_solib_svr4_fetch_link_map_offsets);
+    (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 
   /* NetBSD ELF uses -fpcc-struct-return by default.  */
   tdep->struct_return = pcc_struct_return;
Index: config/i386/fbsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/fbsd.mh,v
retrieving revision 1.13
diff -u -p -r1.13 fbsd.mh
--- config/i386/fbsd.mh 29 Oct 2003 22:53:08 -0000 1.13
+++ config/i386/fbsd.mh 22 Feb 2004 16:19:41 -0000
@@ -1,7 +1,5 @@
-# Host: Intel 386 running FreeBSD
-
-XM_FILE= xm-i386.h
-
+# Host: FreeBSD/i386
+NATDEPFILES= fork-child.o infptrace.o inftarg.o \
+	i386-nat.o i386bsd-nat.o i386fbsd-nat.o gcore.o fbsd-proc.o
 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 core-aout.o i386-nat.o i386bsd-nat.o i386fbsd-nat.o gcore.o fbsd-proc.o
+XM_FILE= xm-i386.h
Index: config/i386/fbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/fbsd.mt,v
retrieving revision 1.5
diff -u -p -r1.5 fbsd.mt
--- config/i386/fbsd.mt 29 Oct 2003 22:53:08 -0000 1.5
+++ config/i386/fbsd.mt 22 Feb 2004 16:19:41 -0000
@@ -1,3 +1,4 @@
-# Target: Intel 386 running FreeBSD
-TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o corelow.o
+# Target: FreeBSD/i386
+TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
+	corelow.o solib.o solib-svr4.o
 TM_FILE= tm-fbsd.h
Index: config/i386/fbsd64.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/fbsd64.mh,v
retrieving revision 1.4
diff -u -p -r1.4 fbsd64.mh
--- config/i386/fbsd64.mh 30 Oct 2003 19:41:40 -0000 1.4
+++ config/i386/fbsd64.mh 22 Feb 2004 16:19:41 -0000
@@ -1,7 +1,5 @@
 # Host: FreeBSD/amd64
-
-XM_FILE= xm-i386.h
-
+NATDEPFILES= fork-child.o infptrace.o inftarg.o \
+	amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o gcore.o fbsd-proc.o
 NAT_FILE= nm-fbsd64.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 amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o gcore.o fbsd-proc.o
+XM_FILE= xm-i386.h
Index: config/i386/fbsd64.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/fbsd64.mt,v
retrieving revision 1.3
diff -u -p -r1.3 fbsd64.mt
--- config/i386/fbsd64.mt 30 Oct 2003 19:41:40 -0000 1.3
+++ config/i386/fbsd64.mt 22 Feb 2004 16:19:41 -0000
@@ -1,2 +1,5 @@
 # Target: FreeBSD/amd64
-TDEPFILES= x86-64-tdep.o amd64fbsd-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o corelow.o
+TDEPFILES= x86-64-tdep.o amd64fbsd-tdep.o \
+	i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
+	corelow.o solib.o solib-svr4.o
+TM_FILE= tm-fbsd.h
Index: config/i386/nbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsd.mt,v
retrieving revision 1.13
diff -u -p -r1.13 nbsd.mt
--- config/i386/nbsd.mt 2 Sep 2002 18:09:07 -0000 1.13
+++ config/i386/nbsd.mt 22 Feb 2004 16:19:41 -0000
@@ -1,4 +1,4 @@
-# Target: Intel 386 running NetBSD
-TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o corelow.o \
-	nbsd-tdep.o solib.o solib-svr4.o
+# Target: NetBSD/i386
+TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o nbsd-tdep.o \
+	corelow.o solib.o solib-svr4.o
 TM_FILE= tm-nbsd.h
Index: config/i386/nbsd64.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsd64.mh,v
retrieving revision 1.1
diff -u -p -r1.1 nbsd64.mh
--- config/i386/nbsd64.mh 18 Oct 2003 18:41:22 -0000 1.1
+++ config/i386/nbsd64.mh 22 Feb 2004 16:19:41 -0000
@@ -1,7 +1,5 @@
 # Host: NetBSD/amd64
-
-XM_FILE= xm-i386.h
-
+NATDEPFILES= fork-child.o infptrace.o inftarg.o \
+	amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o
 NAT_FILE= nm-nbsd.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 amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o
+XM_FILE= xm-i386.h
Index: config/i386/nbsd64.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsd64.mt,v
retrieving revision 1.1
diff -u -p -r1.1 nbsd64.mt
--- config/i386/nbsd64.mt 18 Oct 2003 18:41:22 -0000 1.1
+++ config/i386/nbsd64.mt 22 Feb 2004 16:19:41 -0000
@@ -1,2 +1,4 @@
 # Target: NetBSD/amd64
-TDEPFILES= x86-64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o nbsd-tdep.o
+TDEPFILES= x86-64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o nbsd-tdep.o \
+	corelow.o solib.o solib-svr4.o
+TM_FILE= tm-nbsd.h
Index: config/i386/nbsdaout.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsdaout.mh,v
retrieving revision 1.2
diff -u -p -r1.2 nbsdaout.mh
--- config/i386/nbsdaout.mh 2 Sep 2002 18:09:07 -0000 1.2
+++ config/i386/nbsdaout.mh 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,5 @@
-# Host: Intel 386 running NetBSD
-NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o solib-sunos.o
-
-XM_FILE= xm-nbsd.h
+# Host: NetBSD/i386 a.out
+NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o \
+	solib.o solib-sunos.o
 NAT_FILE= nm-nbsdaout.h
+XM_FILE= xm-nbsd.h
Index: config/i386/nbsdelf.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsdelf.mh,v
retrieving revision 1.14
diff -u -p -r1.14 nbsdelf.mh
--- config/i386/nbsdelf.mh 2 Sep 2002 18:09:07 -0000 1.14
+++ config/i386/nbsdelf.mh 22 Feb 2004 16:19:41 -0000
@@ -1,4 +1,4 @@
-# Host: Intel 386 running NetBSD
+# Host: NetBSD/i386 ELF
 NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o
-XM_FILE= xm-nbsd.h
 NAT_FILE= nm-nbsd.h
+XM_FILE= xm-nbsd.h
Index: config/i386/nm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-fbsd.h,v
retrieving revision 1.7
diff -u -p -r1.7 nm-fbsd.h
--- config/i386/nm-fbsd.h 28 Jun 2002 18:44:49 -0000 1.7
+++ config/i386/nm-fbsd.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
 /* Native-dependent definitions for FreeBSD/i386.
-   Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1997, 2000, 2001
+
+   Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1997, 2000, 2001, 2004
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -87,20 +88,10 @@ extern CORE_ADDR register_u_addr (CORE_A
 
 /* Shared library support.  */
 
-/* The FreeBSD <link.h> uses the same condition to distinguish ELF
-   from a.out.  ELF implies SVR4 shared libraries.  */
-#if (defined (FREEBSD_ELF) || defined (__ELF__)) && !defined (FREEBSD_AOUT)
-#define SVR4_SHARED_LIBS
-#endif
-
-#include "solib.h"		/* Support for shared libraries. */
-#ifdef SVR4_SHARED_LIBS
-#include "elf/common.h"		/* Additional ELF shared library info. */
-#endif
-
-#ifndef SVR4_SHARED_LIBS
+#include "solib.h"
 
-/* Make structure definitions match up with those expected in `solib.c'.  */
+/* Make structure definitions match up with those expected in
+   `solib-sunos.c'.  */
 
 #define link_object	sod
 #define lo_name		sod_name
@@ -154,6 +145,4 @@ extern CORE_ADDR register_u_addr (CORE_A
 #define ld_un		d_un
 #define ld_2		d_sdt
 
-#endif /* !SVR4_SHARED_LIBS */
-
-#endif /* NM_FBSD_H */
+#endif /* nm-fbsd.h */
Index: config/i386/nm-fbsd64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-fbsd64.h,v
retrieving revision 1.1
diff -u -p -r1.1 nm-fbsd64.h
--- config/i386/nm-fbsd64.h 13 Jul 2003 16:15:59 -0000 1.1
+++ config/i386/nm-fbsd64.h 22 Feb 2004 16:19:41 -0000
@@ -1,6 +1,6 @@
 /* Native-dependent definitions for FreeBSD/amd64.
-   Copyright 2003
-   Free Software Foundation, Inc.
+
+   Copyright 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -33,10 +33,5 @@
 
 /* We can attach and detach.  */
 #define ATTACH_DETACH
-
-
-/* Shared library support.  */
-
-#include "solib.h"
 
 #endif /* nm-fbsd64.h */
Index: config/i386/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-nbsd.h,v
retrieving revision 1.6
diff -u -p -r1.6 nm-nbsd.h
--- config/i386/nm-nbsd.h 22 May 2002 03:59:54 -0000 1.6
+++ config/i386/nm-nbsd.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
-/* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
-   Copyright 1986, 1987, 1989, 1992, 1994, 2000, 2002
+/* Native-dependent definitions for NetBSD/i386.
+
+   Copyright 1986, 1987, 1989, 1992, 1994, 2000, 2002, 2004
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -22,7 +23,7 @@
 #ifndef NM_NBSD_H
 #define NM_NBSD_H
 
-/* Get generic NetBSD native definitions. */
+/* Get generic NetBSD native definitions.  */
 #include "config/nm-nbsd.h"
 
-#endif /* NM_NBSD_H */
+#endif /* nm-nbsd.h */
Index: config/i386/nm-nbsdaout.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-nbsdaout.h,v
retrieving revision 1.1
diff -u -p -r1.1 nm-nbsdaout.h
--- config/i386/nm-nbsdaout.h 22 May 2002 03:59:54 -0000 1.1
+++ config/i386/nm-nbsdaout.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
-/* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
-   Copyright 1986, 1987, 1989, 1992, 1994, 1996, 2000
+/* Native-dependent definitions for NetBSD/i386 a.out.
+
+   Copyright 1986, 1987, 1989, 1992, 1994, 1996, 2000, 2004
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -24,7 +25,7 @@
 
 #include "i386/nm-nbsd.h"
 
-/* Get generic NetBSD a.out native definitions. */
+/* Get generic NetBSD a.out native definitions.  */
 #include "config/nm-nbsdaout.h"
 
-#endif /* NM_NBSDAOUT_H */
+#endif /* nm-nbsdaout.h */
Index: config/i386/nm-obsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-obsd.h,v
retrieving revision 1.1
diff -u -p -r1.1 nm-obsd.h
--- config/i386/nm-obsd.h 23 Nov 2001 23:01:54 -0000 1.1
+++ config/i386/nm-obsd.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
 /* Native-dependent definitions for OpenBSD/i386.
-   Copyright 2001 Free Software Foundation, Inc.
+
+   Copyright 2001, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -51,9 +52,10 @@ extern CORE_ADDR register_u_addr (CORE_A
 
 /* Shared library support.  */
 
-#include "solib.h"		/* Support for shared libraries. */
+#include "solib.h"
 
-/* Make structure definitions match up with those expected in `solib.c'.  */
+/* Make structure definitions match up with those expected in
+   `solib-sunos.c'.  */
 
 #define link_object	sod
 #define lo_name		sod_name
Index: config/i386/obsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/obsd.mh,v
retrieving revision 1.7
diff -u -p -r1.7 obsd.mh
--- config/i386/obsd.mh 21 Feb 2004 21:12:25 -0000 1.7
+++ config/i386/obsd.mh 22 Feb 2004 16:19:41 -0000
@@ -1,6 +1,4 @@
 # Host: OpenBSD/i386 ELF
-
-XM_FILE= xm-i386.h
-
-NAT_FILE= nm-obsd.h
 NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o i386obsd-nat.o
+NAT_FILE= nm-obsd.h
+XM_FILE= xm-i386.h
Index: config/i386/obsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/obsd.mt,v
retrieving revision 1.4
diff -u -p -r1.4 obsd.mt
--- config/i386/obsd.mt 21 Feb 2004 19:11:38 -0000 1.4
+++ config/i386/obsd.mt 22 Feb 2004 16:19:41 -0000
@@ -1,4 +1,4 @@
 # Target: OpenBSD/i386
-TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o corelow.o \
-	solib.o solib-svr4.o
+TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
+	corelow.o solib.o solib-svr4.o
 TM_FILE= tm-nbsd.h
Index: config/i386/obsd64.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/obsd64.mh,v
retrieving revision 1.1
diff -u -p -r1.1 obsd64.mh
--- config/i386/obsd64.mh 18 Feb 2004 17:44:52 -0000 1.1
+++ config/i386/obsd64.mh 22 Feb 2004 16:19:41 -0000
@@ -1,7 +1,5 @@
 # Host: OpenBSD/amd64
-
-XM_FILE= xm-i386.h
-
+NATDEPFILES= fork-child.o infptrace.o inftarg.o \
+	amd64-nat.o amd64bsd-nat.o amd64obsd-nat.o
 NAT_FILE= nm-nbsd.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 amd64-nat.o amd64bsd-nat.o amd64obsd-nat.o
+XM_FILE= xm-i386.h
Index: config/i386/obsd64.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/obsd64.mt,v
retrieving revision 1.2
diff -u -p -r1.2 obsd64.mt
--- config/i386/obsd64.mt 20 Feb 2004 19:03:14 -0000 1.2
+++ config/i386/obsd64.mt 22 Feb 2004 16:19:41 -0000
@@ -1,3 +1,5 @@
 # Target: OpenBSD/amd64
 TDEPFILES= x86-64-tdep.o amd64obsd-tdep.o \
-	i386-tdep.o i387-tdep.o i386bsd-tdep.o
+	i386-tdep.o i387-tdep.o i386bsd-tdep.o \
+	corelow.o solib.o solib-svr4.o
+TM_FILE= tm-nbsd.h
Index: config/i386/obsdaout.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/obsdaout.mh,v
retrieving revision 1.1
diff -u -p -r1.1 obsdaout.mh
--- config/i386/obsdaout.mh 21 Feb 2004 21:22:13 -0000 1.1
+++ config/i386/obsdaout.mh 22 Feb 2004 16:19:41 -0000
@@ -1,7 +1,5 @@
 # Host: OpenBSD/i386 a.out
-
-XM_FILE= xm-i386.h
-
-NAT_FILE= nm-obsd.h
 NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o i386obsd-nat.o \
 	solib.o solib-sunos.o
+NAT_FILE= nm-obsd.h
+XM_FILE= xm-i386.h
Index: config/i386/tm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-fbsd.h,v
retrieving revision 1.10
diff -u -p -r1.10 tm-fbsd.h
--- config/i386/tm-fbsd.h 6 Sep 2002 20:44:23 -0000 1.10
+++ config/i386/tm-fbsd.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
 /* Target-dependent definitions for FreeBSD/i386.
-   Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+   Copyright 1997, 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,10 +22,10 @@
 #ifndef TM_FBSD_H
 #define TM_FBSD_H
 
-#include "i386/tm-i386.h"
+#include "solib.h"
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
 
-#endif /* TM_FBSD_H */
+#endif /* tm-fbsd.h */
Index: config/i386/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-nbsd.h,v
retrieving revision 1.15
diff -u -p -r1.15 tm-nbsd.h
--- config/i386/tm-nbsd.h 2 Sep 2002 18:09:07 -0000 1.15
+++ config/i386/tm-nbsd.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
-/* Macro definitions for i386 running under NetBSD.
-   Copyright 1994, 1996, 2000, 2002 Free Software Foundation, Inc.
+/* Target-dependent definitions for NetBSD/i386.
+
+   Copyright 1994, 1996, 2000, 2002, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,7 +22,6 @@
 #ifndef TM_NBSD_H
 #define TM_NBSD_H
 
-#include "i386/tm-i386.h"
 #include "solib.h"
 
-#endif /* TM_NBSD_H */
+#endif /* tm-nbsd.h */
Index: config/i386/xm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-nbsd.h,v
retrieving revision 1.4
diff -u -p -r1.4 xm-nbsd.h
--- config/i386/xm-nbsd.h 5 Jun 2002 19:18:19 -0000 1.4
+++ config/i386/xm-nbsd.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
-/* Parameters for execution on a i386 running NetBSD, for GDB.
-   Copyright 1994, 2000 Free Software Foundation, Inc.
+/* Host-dependent definitions for NetBSD/i386.
+
+   Copyright 1994, 2000, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -18,7 +19,7 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/* Get generic NetBSD host definitions. */
-#include "config/xm-nbsd.h"
+#include "i386/xm-i386.h"
 
-#define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext
+/* Get generic NetBSD host definitions.  */
+#include "config/xm-nbsd.h"
Index: config/i386/xm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386.h,v
retrieving revision 1.2
diff -u -p -r1.2 xm-i386.h
--- config/i386/xm-i386.h 30 Aug 2001 21:53:47 -0000 1.2
+++ config/i386/xm-i386.h 22 Feb 2004 16:19:41 -0000
@@ -1,5 +1,6 @@
-/* Host-dependent definitions for i386.
-   Copyright 2001 Free Software Foundation, Inc.
+/* Host-dependent definitions for the i386.
+
+   Copyright 2001, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -27,4 +28,4 @@
 #define HOST_DOUBLE_FORMAT &floatformat_ieee_double_little
 #define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext
 
-#endif /* XM_386_H */
+#endif /* xm-i386.h */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]