Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch 1/2] Remove a.out NetBSD and OpenBSD targets
@ 2013-09-19 20:02 Jan Kratochvil
  2013-09-19 20:26 ` [patchv2 " Jan Kratochvil
  0 siblings, 1 reply; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-19 20:02 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mark Kettenis

Hi Mark,

as you suggested in
	Re: solib-sunos.c is broken
	https://sourceware.org/ml/gdb/2013-08/msg00085.html
	Message-Id: <201308210827.r7L8RStV017117@glazunov.sibelius.xs4all.nl>

going to remove the targets depending on solib-sunos.c.

I have verified all .o files referenced by removed .mh files are still in use
by at least one of the remaining .mh files.

You asked there to keep m68k OpenBSD ELF.  Its solib-sunos.o reference is
removed in the next patch.
	config/m68k/obsd.mh 
	m68*-*-openbsd*)        gdb_host=obsd ;;


Thanks,
Jan


gdb/
2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Remove a.out NetBSD and OpenBSD targets.
	* config/arm/nbsdaout.mh: Remove.
	* config/i386/nbsdaout.mh: Remove.
	* config/i386/obsdaout.mh: Remove.
	* config/m68k/nbsdaout.mh: Remove.
	* config/sparc/nbsdaout.mh: Remove.
	* config/vax/nbsdaout.mh: Remove.
	* configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
	(i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
	(m68*-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*, vax-*-netbsd*):
	Remove.

--- a/gdb/config/arm/nbsdaout.mh
+++ /dev/null
@@ -1,3 +0,0 @@
-# Host: NetBSD/arm
-NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o \
-	solib-sunos.o
--- a/gdb/config/i386/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/i386/obsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: OpenBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/m68k/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/m68k a.out
-NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/sparc/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/sparc a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/vax/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/vax a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	vaxbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/configure.host
+++ b/gdb/configure.host
@@ -78,7 +78,6 @@ alpha*-*-openbsd*)	gdb_host=nbsd ;;
 arm*-*-linux*)		gdb_host=linux ;;
 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-arm*-*-netbsd*)		gdb_host=nbsdaout ;;
 arm*-*-openbsd*)	gdb_host=nbsdelf ;;
 
 hppa*-*-hpux*)
@@ -91,7 +90,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
 			gdb_host=fbsd ;;
 i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
 i[34567]86-*-go32*)	gdb_host=go32 ;;
 i[34567]86-*-mingw32*)	gdb_host=mingw
 			gdb_host_obs=mingw-hdep.o
@@ -100,8 +98,6 @@ i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
 i[34567]86-*-linux*)	gdb_host=linux ;;
 i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
 i[3456]86-*-nto*) 	gdb_host=nto ;;
-i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
-			gdb_host=obsdaout ;;
 i[34567]86-*-openbsd*)	gdb_host=obsd ;;
 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
 			gdb_host=sol2-64 ;;
@@ -114,7 +110,6 @@ ia64-*-linux*)		gdb_host=linux ;;
 m68*-*-linux*)		gdb_host=linux ;;
 m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-m68*-*-netbsd*)		gdb_host=nbsdaout ;;
 m68*-*-openbsd*)	gdb_host=obsd ;;
 
 m88*-*-openbsd*)	gdb_host=obsd ;;
@@ -154,8 +149,6 @@ sparc-*-linux*)		gdb_host=linux ;;
 sparc64-*-linux*)	gdb_host=linux64 ;;
 sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
-sparc-*-netbsd*)	gdb_host=nbsdaout ;;
 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
 			gdb_host=nbsd64 ;;
 sparc-*-openbsd*)	gdb_host=nbsdelf ;;
@@ -169,7 +162,6 @@ tilegx-*-linux*)	gdb_host=linux ;;
 vax-*-bsd*)		gdb_host=vax ;;
 vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-vax-*-netbsd*)		gdb_host=nbsdaout ;;
 vax-*-openbsd*)		gdb_host=obsd ;;
 vax-*-ultrix*)		gdb_host=vax ;;
 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [patchv2 1/2] Remove a.out NetBSD and OpenBSD targets
  2013-09-19 20:02 [patch 1/2] Remove a.out NetBSD and OpenBSD targets Jan Kratochvil
@ 2013-09-19 20:26 ` Jan Kratochvil
  2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
  2013-09-20  7:40   ` [patchv2 1/2] Remove a.out NetBSD and OpenBSD targets Eli Zaretskii
  0 siblings, 2 replies; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-19 20:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mark Kettenis

Hello,

Keith has correctly pointed out it needs a NEWS notice.


Thanks,
Jan


gdb/
2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Remove a.out NetBSD and OpenBSD targets.
	* NEWS (Removed targets): New.
	* config/arm/nbsdaout.mh: Remove.
	* config/i386/nbsdaout.mh: Remove.
	* config/i386/obsdaout.mh: Remove.
	* config/m68k/nbsdaout.mh: Remove.
	* config/sparc/nbsdaout.mh: Remove.
	* config/vax/nbsdaout.mh: Remove.
	* configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
	(i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
	(m68*-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*, vax-*-netbsd*):
	Remove.

--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -25,6 +25,19 @@ Nios II ELF 			nios2*-*-elf
 Nios II GNU/Linux		nios2*-*-linux
 Texas Instruments MSP430	msp430*-*-elf
 
+* Removed targets
+
+Support for these obsolete configurations has been removed.
+
+arm*-*-netbsd*
+i[34567]86-*-netbsd*
+i[34567]86-*-openbsd[0-2].*
+i[34567]86-*-openbsd3.[0-3]
+m68*-*-netbsd*
+sparc-*-netbsdaout*
+sparc-*-netbsd*
+vax-*-netbsd*
+
 * New commands:
 catch rethrow
   Like "catch throw", but catches a re-thrown exception.
--- a/gdb/config/arm/nbsdaout.mh
+++ /dev/null
@@ -1,3 +0,0 @@
-# Host: NetBSD/arm
-NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o \
-	solib-sunos.o
--- a/gdb/config/i386/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/i386/obsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: OpenBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/m68k/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/m68k a.out
-NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/sparc/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/sparc a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/vax/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/vax a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	vaxbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/configure.host
+++ b/gdb/configure.host
@@ -78,7 +78,6 @@ alpha*-*-openbsd*)	gdb_host=nbsd ;;
 arm*-*-linux*)		gdb_host=linux ;;
 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-arm*-*-netbsd*)		gdb_host=nbsdaout ;;
 arm*-*-openbsd*)	gdb_host=nbsdelf ;;
 
 hppa*-*-hpux*)
@@ -91,7 +90,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
 			gdb_host=fbsd ;;
 i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
 i[34567]86-*-go32*)	gdb_host=go32 ;;
 i[34567]86-*-mingw32*)	gdb_host=mingw
 			gdb_host_obs=mingw-hdep.o
@@ -100,8 +98,6 @@ i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
 i[34567]86-*-linux*)	gdb_host=linux ;;
 i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
 i[3456]86-*-nto*) 	gdb_host=nto ;;
-i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
-			gdb_host=obsdaout ;;
 i[34567]86-*-openbsd*)	gdb_host=obsd ;;
 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
 			gdb_host=sol2-64 ;;
@@ -114,7 +110,6 @@ ia64-*-linux*)		gdb_host=linux ;;
 m68*-*-linux*)		gdb_host=linux ;;
 m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-m68*-*-netbsd*)		gdb_host=nbsdaout ;;
 m68*-*-openbsd*)	gdb_host=obsd ;;
 
 m88*-*-openbsd*)	gdb_host=obsd ;;
@@ -154,8 +149,6 @@ sparc-*-linux*)		gdb_host=linux ;;
 sparc64-*-linux*)	gdb_host=linux64 ;;
 sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
-sparc-*-netbsd*)	gdb_host=nbsdaout ;;
 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
 			gdb_host=nbsd64 ;;
 sparc-*-openbsd*)	gdb_host=nbsdelf ;;
@@ -169,7 +162,6 @@ tilegx-*-linux*)	gdb_host=linux ;;
 vax-*-bsd*)		gdb_host=vax ;;
 vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-vax-*-netbsd*)		gdb_host=nbsdaout ;;
 vax-*-openbsd*)		gdb_host=obsd ;;
 vax-*-ultrix*)		gdb_host=vax ;;
 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-19 20:26 ` [patchv2 " Jan Kratochvil
@ 2013-09-19 21:01   ` Jan Kratochvil
  2013-09-20  7:40     ` Eli Zaretskii
                       ` (2 more replies)
  2013-09-20  7:40   ` [patchv2 1/2] Remove a.out NetBSD and OpenBSD targets Eli Zaretskii
  1 sibling, 3 replies; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-19 21:01 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mark Kettenis

Hello,

fixed up targets -> hosts and targets.


Jan


gdb/
2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Remove a.out NetBSD and OpenBSD hosts and targets.
	* NEWS (Removed hosts, Removed targets): New.
	* config/arm/nbsdaout.mh: Remove.
	* config/i386/nbsdaout.mh: Remove.
	* config/i386/obsdaout.mh: Remove.
	* config/m68k/nbsdaout.mh: Remove.
	* config/sparc/nbsdaout.mh: Remove.
	* config/vax/nbsdaout.mh: Remove.
	* configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
	(i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
	(m68*-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*, vax-*-netbsd*):
	Remove.
	* configure.tgt (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68*-*-netbsd*)
	(sparc-*-netbsd*, vax-*-netbsd*): Remove.

--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -25,6 +25,29 @@ Nios II ELF 			nios2*-*-elf
 Nios II GNU/Linux		nios2*-*-linux
 Texas Instruments MSP430	msp430*-*-elf
 
+* Removed hosts
+
+Support for these obsolete configurations has been removed.
+
+arm*-*-netbsd*
+i[34567]86-*-netbsd*
+i[34567]86-*-openbsd[0-2].*
+i[34567]86-*-openbsd3.[0-3]
+m68*-*-netbsd*
+sparc-*-netbsdaout*
+sparc-*-netbsd*
+vax-*-netbsd*
+
+* Removed targets
+
+Support for these obsolete configurations has been removed.
+
+arm*-*-netbsd*
+i[34567]86-*-netbsd*
+m68*-*-netbsd*
+sparc-*-netbsd*
+vax-*-netbsd*
+
 * New commands:
 catch rethrow
   Like "catch throw", but catches a re-thrown exception.
--- a/gdb/config/arm/nbsdaout.mh
+++ /dev/null
@@ -1,3 +0,0 @@
-# Host: NetBSD/arm
-NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o \
-	solib-sunos.o
--- a/gdb/config/i386/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/i386/obsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: OpenBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/m68k/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/m68k a.out
-NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/sparc/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/sparc a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/vax/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/vax a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	vaxbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/configure.host
+++ b/gdb/configure.host
@@ -78,7 +78,6 @@ alpha*-*-openbsd*)	gdb_host=nbsd ;;
 arm*-*-linux*)		gdb_host=linux ;;
 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-arm*-*-netbsd*)		gdb_host=nbsdaout ;;
 arm*-*-openbsd*)	gdb_host=nbsdelf ;;
 
 hppa*-*-hpux*)
@@ -91,7 +90,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
 			gdb_host=fbsd ;;
 i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
 i[34567]86-*-go32*)	gdb_host=go32 ;;
 i[34567]86-*-mingw32*)	gdb_host=mingw
 			gdb_host_obs=mingw-hdep.o
@@ -100,8 +98,6 @@ i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
 i[34567]86-*-linux*)	gdb_host=linux ;;
 i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
 i[3456]86-*-nto*) 	gdb_host=nto ;;
-i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
-			gdb_host=obsdaout ;;
 i[34567]86-*-openbsd*)	gdb_host=obsd ;;
 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
 			gdb_host=sol2-64 ;;
@@ -114,7 +110,6 @@ ia64-*-linux*)		gdb_host=linux ;;
 m68*-*-linux*)		gdb_host=linux ;;
 m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-m68*-*-netbsd*)		gdb_host=nbsdaout ;;
 m68*-*-openbsd*)	gdb_host=obsd ;;
 
 m88*-*-openbsd*)	gdb_host=obsd ;;
@@ -154,8 +149,6 @@ sparc-*-linux*)		gdb_host=linux ;;
 sparc64-*-linux*)	gdb_host=linux64 ;;
 sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
-sparc-*-netbsd*)	gdb_host=nbsdaout ;;
 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
 			gdb_host=nbsd64 ;;
 sparc-*-openbsd*)	gdb_host=nbsdelf ;;
@@ -169,7 +162,6 @@ tilegx-*-linux*)	gdb_host=linux ;;
 vax-*-bsd*)		gdb_host=vax ;;
 vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-vax-*-netbsd*)		gdb_host=nbsdaout ;;
 vax-*-openbsd*)		gdb_host=obsd ;;
 vax-*-ultrix*)		gdb_host=vax ;;
 
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -92,7 +92,7 @@ arm*-*-linux*)
 			solib-svr4.o symfile-mem.o linux-tdep.o"
 	build_gdbserver=yes
 	;;
-arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
+arm*-*-knetbsd*-gnu)
 	# Target: NetBSD/arm
 	gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o"
 	;;
@@ -191,7 +191,7 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
 	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
 			bsd-uthread.o solib-svr4.o"
 	;;
-i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
+i[34567]86-*-knetbsd*-gnu)
 	# Target: NetBSD/i386
 	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
 			nbsd-tdep.o solib-svr4.o"
@@ -318,7 +318,7 @@ m68*-*-linux*)
 			linux-tdep.o glibc-tdep.o symfile-mem.o"
 	build_gdbserver=yes
 	;;
-m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
+m68*-*-knetbsd*-gnu)
 	# Target: NetBSD/m68k
 	gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
 	;;
@@ -546,7 +546,7 @@ sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
 			solib-svr4.o \
 			ravenscar-thread.o sparc-ravenscar-thread.o"
 	;;
-sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
+sparc-*-knetbsd*-gnu)
 	# Target: NetBSD/sparc
 	gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
 			solib-svr4.o \
@@ -631,7 +631,7 @@ v850*-*-elf | v850*-*-rtems*)
 	gdb_sim=../sim/v850/libsim.a
 	;;
 
-vax-*-netbsd* | vax-*-knetbsd*-gnu)
+vax-*-knetbsd*-gnu)
 	# Target: NetBSD/vax
 	gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
 	;;


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv2 1/2] Remove a.out NetBSD and OpenBSD targets
  2013-09-19 20:26 ` [patchv2 " Jan Kratochvil
  2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
@ 2013-09-20  7:40   ` Eli Zaretskii
  1 sibling, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2013-09-20  7:40 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb-patches, mark.kettenis

> Date: Thu, 19 Sep 2013 22:26:22 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Mark Kettenis <mark.kettenis@xs4all.nl>
> 
> Keith has correctly pointed out it needs a NEWS notice.

NEWS is OK.  Thanks.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
@ 2013-09-20  7:40     ` Eli Zaretskii
  2013-09-20  7:47       ` Jan Kratochvil
  2013-09-20  8:43     ` Pedro Alves
  2013-09-20  9:24     ` [patchv3 " Mark Kettenis
  2 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2013-09-20  7:40 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb-patches, mark.kettenis

> Date: Thu, 19 Sep 2013 23:01:34 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Mark Kettenis <mark.kettenis@xs4all.nl>
> 
> fixed up targets -> hosts and targets.

NEWS is still OK.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-20  7:40     ` Eli Zaretskii
@ 2013-09-20  7:47       ` Jan Kratochvil
  2013-09-20  8:36         ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-20  7:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches, mark.kettenis

On Fri, 20 Sep 2013 09:40:57 +0200, Eli Zaretskii wrote:
> NEWS is still OK.

I wanted to fix s/Removed hosts/Removed native configurations/ as I found
later such wording there from the past, I guess that is better / also OK.


Thanks,
Jan


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-20  7:47       ` Jan Kratochvil
@ 2013-09-20  8:36         ` Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2013-09-20  8:36 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb-patches, mark.kettenis

> Date: Fri, 20 Sep 2013 09:47:22 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb-patches@sourceware.org, mark.kettenis@xs4all.nl
> 
> On Fri, 20 Sep 2013 09:40:57 +0200, Eli Zaretskii wrote:
> > NEWS is still OK.
> 
> I wanted to fix s/Removed hosts/Removed native configurations/ as I found
> later such wording there from the past, I guess that is better / also OK.

Yes.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
  2013-09-20  7:40     ` Eli Zaretskii
@ 2013-09-20  8:43     ` Pedro Alves
  2013-09-21 13:13       ` [patchv4 " Jan Kratochvil
  2013-09-20  9:24     ` [patchv3 " Mark Kettenis
  2 siblings, 1 reply; 14+ messages in thread
From: Pedro Alves @ 2013-09-20  8:43 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb-patches, Mark Kettenis

Should we add these to the "Configuration $host is obsolete"
case at the top of gdb/configure.host?

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
  2013-09-20  7:40     ` Eli Zaretskii
  2013-09-20  8:43     ` Pedro Alves
@ 2013-09-20  9:24     ` Mark Kettenis
  2 siblings, 0 replies; 14+ messages in thread
From: Mark Kettenis @ 2013-09-20  9:24 UTC (permalink / raw)
  To: jan.kratochvil; +Cc: gdb-patches, mark.kettenis

> Date: Thu, 19 Sep 2013 23:01:34 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> Hello,
> 
> fixed up targets -> hosts and targets.

There's a bit of a problem here.  The removal of some of the -netbsd*
stuff will also remove support for some of the NetBSD ELF targets.
That should not happen.  So I think you should:

1. Drop the configure.tgt bit from this diff.  The removal of a.out
   support should only affect *native* builds.

2. Adjust the NEWS to only list the old OpenBSD/i386 and explicit
   NetBSD a.out bits.

> gdb/
> 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	Remove a.out NetBSD and OpenBSD hosts and targets.
> 	* NEWS (Removed hosts, Removed targets): New.
> 	* config/arm/nbsdaout.mh: Remove.
> 	* config/i386/nbsdaout.mh: Remove.
> 	* config/i386/obsdaout.mh: Remove.
> 	* config/m68k/nbsdaout.mh: Remove.
> 	* config/sparc/nbsdaout.mh: Remove.
> 	* config/vax/nbsdaout.mh: Remove.
> 	* configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
> 	(i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
> 	(m68*-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*, vax-*-netbsd*):
> 	Remove.
> 	* configure.tgt (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68*-*-netbsd*)
> 	(sparc-*-netbsd*, vax-*-netbsd*): Remove.
> 
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -25,6 +25,29 @@ Nios II ELF 			nios2*-*-elf
>  Nios II GNU/Linux		nios2*-*-linux
>  Texas Instruments MSP430	msp430*-*-elf
>  
> +* Removed hosts
> +
> +Support for these obsolete configurations has been removed.
> +
> +arm*-*-netbsd*
> +i[34567]86-*-netbsd*
> +i[34567]86-*-openbsd[0-2].*
> +i[34567]86-*-openbsd3.[0-3]
> +m68*-*-netbsd*
> +sparc-*-netbsdaout*
> +sparc-*-netbsd*
> +vax-*-netbsd*
> +
> +* Removed targets
> +
> +Support for these obsolete configurations has been removed.
> +
> +arm*-*-netbsd*
> +i[34567]86-*-netbsd*
> +m68*-*-netbsd*
> +sparc-*-netbsd*
> +vax-*-netbsd*
> +
>  * New commands:
>  catch rethrow
>    Like "catch throw", but catches a re-thrown exception.
> --- a/gdb/config/arm/nbsdaout.mh
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -# Host: NetBSD/arm
> -NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o \
> -	solib-sunos.o
> --- a/gdb/config/i386/nbsdaout.mh
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -# Host: NetBSD/i386 a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/i386/obsdaout.mh
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -# Host: OpenBSD/i386 a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/m68k/nbsdaout.mh
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# Host: NetBSD/m68k a.out
> -NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/sparc/nbsdaout.mh
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# Host: NetBSD/sparc a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/vax/nbsdaout.mh
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -# Host: NetBSD/vax a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	vaxbsd-nat.o bsd-kvm.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/configure.host
> +++ b/gdb/configure.host
> @@ -78,7 +78,6 @@ alpha*-*-openbsd*)	gdb_host=nbsd ;;
>  arm*-*-linux*)		gdb_host=linux ;;
>  arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -arm*-*-netbsd*)		gdb_host=nbsdaout ;;
>  arm*-*-openbsd*)	gdb_host=nbsdelf ;;
>  
>  hppa*-*-hpux*)
> @@ -91,7 +90,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
>  			gdb_host=fbsd ;;
>  i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
>  i[34567]86-*-go32*)	gdb_host=go32 ;;
>  i[34567]86-*-mingw32*)	gdb_host=mingw
>  			gdb_host_obs=mingw-hdep.o
> @@ -100,8 +98,6 @@ i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
>  i[34567]86-*-linux*)	gdb_host=linux ;;
>  i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
>  i[3456]86-*-nto*) 	gdb_host=nto ;;
> -i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
> -			gdb_host=obsdaout ;;
>  i[34567]86-*-openbsd*)	gdb_host=obsd ;;
>  i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
>  			gdb_host=sol2-64 ;;
> @@ -114,7 +110,6 @@ ia64-*-linux*)		gdb_host=linux ;;
>  m68*-*-linux*)		gdb_host=linux ;;
>  m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -m68*-*-netbsd*)		gdb_host=nbsdaout ;;
>  m68*-*-openbsd*)	gdb_host=obsd ;;
>  
>  m88*-*-openbsd*)	gdb_host=obsd ;;
> @@ -154,8 +149,6 @@ sparc-*-linux*)		gdb_host=linux ;;
>  sparc64-*-linux*)	gdb_host=linux64 ;;
>  sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
> -sparc-*-netbsd*)	gdb_host=nbsdaout ;;
>  sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
>  			gdb_host=nbsd64 ;;
>  sparc-*-openbsd*)	gdb_host=nbsdelf ;;
> @@ -169,7 +162,6 @@ tilegx-*-linux*)	gdb_host=linux ;;
>  vax-*-bsd*)		gdb_host=vax ;;
>  vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -vax-*-netbsd*)		gdb_host=nbsdaout ;;
>  vax-*-openbsd*)		gdb_host=obsd ;;
>  vax-*-ultrix*)		gdb_host=vax ;;
>  
> --- a/gdb/configure.tgt
> +++ b/gdb/configure.tgt
> @@ -92,7 +92,7 @@ arm*-*-linux*)
>  			solib-svr4.o symfile-mem.o linux-tdep.o"
>  	build_gdbserver=yes
>  	;;
> -arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
> +arm*-*-knetbsd*-gnu)
>  	# Target: NetBSD/arm
>  	gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o"
>  	;;
> @@ -191,7 +191,7 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
>  	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
>  			bsd-uthread.o solib-svr4.o"
>  	;;
> -i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
> +i[34567]86-*-knetbsd*-gnu)
>  	# Target: NetBSD/i386
>  	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
>  			nbsd-tdep.o solib-svr4.o"
> @@ -318,7 +318,7 @@ m68*-*-linux*)
>  			linux-tdep.o glibc-tdep.o symfile-mem.o"
>  	build_gdbserver=yes
>  	;;
> -m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
> +m68*-*-knetbsd*-gnu)
>  	# Target: NetBSD/m68k
>  	gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
>  	;;
> @@ -546,7 +546,7 @@ sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
>  			solib-svr4.o \
>  			ravenscar-thread.o sparc-ravenscar-thread.o"
>  	;;
> -sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
> +sparc-*-knetbsd*-gnu)
>  	# Target: NetBSD/sparc
>  	gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
>  			solib-svr4.o \
> @@ -631,7 +631,7 @@ v850*-*-elf | v850*-*-rtems*)
>  	gdb_sim=../sim/v850/libsim.a
>  	;;
>  
> -vax-*-netbsd* | vax-*-knetbsd*-gnu)
> +vax-*-knetbsd*-gnu)
>  	# Target: NetBSD/vax
>  	gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
>  	;;
> 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-20  8:43     ` Pedro Alves
@ 2013-09-21 13:13       ` Jan Kratochvil
  2013-09-22 12:26         ` Jan Kratochvil
  2013-09-23 20:30         ` Mark Kettenis
  0 siblings, 2 replies; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-21 13:13 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches, Pedro Alves

On Fri, 20 Sep 2013 11:24:28 +0200, Mark Kettenis wrote:
> There's a bit of a problem here.  The removal of some of the -netbsd*
> stuff will also remove support for some of the NetBSD ELF targets.
> That should not happen.  So I think you should:
> 
> 1. Drop the configure.tgt bit from this diff.  The removal of a.out
>    support should only affect *native* builds.

OK, I see now that the targets support is indifferent for a.out vs. ELF.

One could additionally disable a.out targets (and permit their *elf
counterparts) but that would be needless limitation of GDB.
> 

> 2. Adjust the NEWS to only list the old OpenBSD/i386 and explicit
>    NetBSD a.out bits.

Not sure I understood, the NEWS file lists only the explicit hosts.


On Fri, 20 Sep 2013 10:43:24 +0200, Pedro Alves wrote:
> Should we add these to the "Configuration $host is obsolete"
> case at the top of gdb/configure.host?

Done.


Thanks,
Jan


gdb/
2013-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Remove a.out NetBSD and OpenBSD hosts.
	* NEWS (Removed native configurations): New.
	* config/arm/nbsdaout.mh: Remove.
	* config/i386/nbsdaout.mh: Remove.
	* config/i386/obsdaout.mh: Remove.
	* config/m68k/nbsdaout.mh: Remove.
	* config/sparc/nbsdaout.mh: Remove.
	* config/vax/nbsdaout.mh: Remove.
	* configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
	(i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
	(m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
	error.
	(arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
	(i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
	(sparc-*-netbsd*, vax-*-netbsd*): Remove.

--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -25,6 +25,19 @@ Nios II ELF 			nios2*-*-elf
 Nios II GNU/Linux		nios2*-*-linux
 Texas Instruments MSP430	msp430*-*-elf
 
+* Removed native configurations
+
+Support for these a.out NetBSD and OpenBSD obsolete configurations has
+been removed.  ELF variants of these configurations are kept supported.
+
+arm*-*-netbsd*              but arm*-*-netbsdelf*       is kept supported.
+i[34567]86-*-netbsd*        but i[34567]86-*-netbsdelf* is kept supported.
+i[34567]86-*-openbsd[0-2].* but i[34567]86-*-openbsd*   is kept supported.
+i[34567]86-*-openbsd3.[0-3]
+m68*-*-netbsd*              but m68*-*-netbsdelf*       is kept supported.
+sparc-*-netbsd*             but sparc-*-netbsdelf*      is kept supported.
+vax-*-netbsd*               but vax-*-netbsdelf*        is kept supported.
+
 * New commands:
 catch rethrow
   Like "catch throw", but catches a re-thrown exception.
--- a/gdb/config/arm/nbsdaout.mh
+++ /dev/null
@@ -1,3 +0,0 @@
-# Host: NetBSD/arm
-NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o \
-	solib-sunos.o
--- a/gdb/config/i386/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/i386/obsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: OpenBSD/i386 a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/m68k/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/m68k a.out
-NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/sparc/nbsdaout.mh
+++ /dev/null
@@ -1,5 +0,0 @@
-# Host: NetBSD/sparc a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/config/vax/nbsdaout.mh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Host: NetBSD/vax a.out
-NATDEPFILES= fork-child.o inf-ptrace.o \
-	vaxbsd-nat.o bsd-kvm.o \
-	solib-sunos.o
-
-LOADLIBES= -lkvm
--- a/gdb/configure.host
+++ b/gdb/configure.host
@@ -13,12 +13,21 @@
 # The default is $host_cpu.
 
 case $host in
+ arm*-*-netbsdelf* | \
+ i[34567]86-*-netbsdelf* | \
+ m68*-*-netbsdelf* | \
+ sparc-*-netbsdelf* | \
+ vax-*-netbsdelf*)
+    ;;
  alpha*-*-osf1* | \
  alpha*-*-osf2* | \
+ arm*-*-netbsd* | \
  hppa*-*-hiux* | \
  i[34567]86-ncr-* | \
  i[34567]86-*-dgux* | \
  i[34567]86-*-lynxos* | \
+ i[34567]86-*-netbsd* | \
+ i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3] | \
  i[34567]86-*-sco3.2v5* | \
  i[34567]86-*-sco3.2v4* | \
  i[34567]86-*-sco* | \
@@ -29,7 +38,10 @@ case $host in
  i[34567]86-*-unixware* | \
  i[34567]86-*-sysv* | \
  i[34567]86-*-isc* | \
+ m68*-*-netbsd* | \
+ sparc-*-netbsd* | \
  rs6000-*-lynxos* | \
+ vax-*-netbsd* | \
  null)
     echo "*** Configuration $host is obsolete." >&2
     echo "*** Support has been REMOVED." >&2
@@ -78,7 +90,6 @@ alpha*-*-openbsd*)	gdb_host=nbsd ;;
 arm*-*-linux*)		gdb_host=linux ;;
 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-arm*-*-netbsd*)		gdb_host=nbsdaout ;;
 arm*-*-openbsd*)	gdb_host=nbsdelf ;;
 
 hppa*-*-hpux*)
@@ -91,7 +102,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
 			gdb_host=fbsd ;;
 i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
 i[34567]86-*-go32*)	gdb_host=go32 ;;
 i[34567]86-*-mingw32*)	gdb_host=mingw
 			gdb_host_obs=mingw-hdep.o
@@ -100,8 +110,6 @@ i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
 i[34567]86-*-linux*)	gdb_host=linux ;;
 i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
 i[3456]86-*-nto*) 	gdb_host=nto ;;
-i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
-			gdb_host=obsdaout ;;
 i[34567]86-*-openbsd*)	gdb_host=obsd ;;
 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
 			gdb_host=sol2-64 ;;
@@ -114,7 +122,6 @@ ia64-*-linux*)		gdb_host=linux ;;
 m68*-*-linux*)		gdb_host=linux ;;
 m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-m68*-*-netbsd*)		gdb_host=nbsdaout ;;
 m68*-*-openbsd*)	gdb_host=obsd ;;
 
 m88*-*-openbsd*)	gdb_host=obsd ;;
@@ -154,8 +161,6 @@ sparc-*-linux*)		gdb_host=linux ;;
 sparc64-*-linux*)	gdb_host=linux64 ;;
 sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
-sparc-*-netbsd*)	gdb_host=nbsdaout ;;
 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
 			gdb_host=nbsd64 ;;
 sparc-*-openbsd*)	gdb_host=nbsdelf ;;
@@ -169,7 +174,6 @@ tilegx-*-linux*)	gdb_host=linux ;;
 vax-*-bsd*)		gdb_host=vax ;;
 vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
 			gdb_host=nbsdelf ;;
-vax-*-netbsd*)		gdb_host=nbsdaout ;;
 vax-*-openbsd*)		gdb_host=obsd ;;
 vax-*-ultrix*)		gdb_host=vax ;;
 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-21 13:13       ` [patchv4 " Jan Kratochvil
@ 2013-09-22 12:26         ` Jan Kratochvil
  2013-09-23 20:32           ` Mark Kettenis
  2013-09-23 20:30         ` Mark Kettenis
  1 sibling, 1 reply; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-22 12:26 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches, Pedro Alves

Hi Mark,

additionally I thought one can remove a.out support from *bsd-{nat,tdep}.c
files.  But then I found in sparcnbsd-tdep.c:

/* OpenBSD uses the traditional NetBSD core file format, even for
   ports that use ELF.  Therefore, if the default OS ABI is OpenBSD
   ELF, we return that instead of NetBSD a.out.  This is mainly for
   the benfit of OpenBSD/sparc64, which inherits the sniffer below
   since we include this file for an OpenBSD/sparc64 target.  For
   OpenBSD/sparc, the NetBSD a.out OS ABI is probably similar enough
   to both the OpenBSD a.out and the OpenBSD ELF OS ABI.  */
#if defined (GDB_OSABI_DEFAULT) && (GDB_OSABI_DEFAULT == GDB_OSABI_OPENBSD_ELF)
#define GDB_OSABI_NETBSD_CORE GDB_OSABI_OPENBSD_ELF
#else
#define GDB_OSABI_NETBSD_CORE GDB_OSABI_NETBSD_AOUT
#endif

OTOH there is even code for ELF BSD core files. Still the patch would probably
regress OpenBSD so just posting it here as is FYI without ChangeLog.


Jan


 gdb/armnbsd-nat.c    | 29 -----------------------------
 gdb/armnbsd-tdep.c   | 25 -------------------------
 gdb/i386bsd-tdep.c   | 38 --------------------------------------
 gdb/m68kbsd-tdep.c   | 43 -------------------------------------------
 gdb/sparcnbsd-tdep.c | 46 ----------------------------------------------
 5 files changed, 181 deletions(-)

diff --git a/gdb/armnbsd-nat.c b/gdb/armnbsd-nat.c
index 81cb2b0..720a801 100644
--- a/gdb/armnbsd-nat.c
+++ b/gdb/armnbsd-nat.c
@@ -411,25 +411,6 @@ armnbsd_store_registers (struct target_ops *ops,
     }
 }
 
-struct md_core
-{
-  struct reg intreg;
-  struct fpreg freg;
-};
-
-static void
-fetch_core_registers (struct regcache *regcache,
-		      char *core_reg_sect, unsigned core_reg_size,
-		      int which, CORE_ADDR ignore)
-{
-  struct md_core *core_reg = (struct md_core *) core_reg_sect;
-  int regno;
-  CORE_ADDR r_pc;
-
-  arm_supply_gregset (regcache, &core_reg->intreg);
-  arm_supply_fparegset (regcache, &core_reg->freg);
-}
-
 static void
 fetch_elfcore_registers (struct regcache *regcache,
 			 char *core_reg_sect, unsigned core_reg_size,
@@ -470,15 +451,6 @@ fetch_elfcore_registers (struct regcache *regcache,
     }
 }
 
-static struct core_fns arm_netbsd_core_fns =
-{
-  bfd_target_unknown_flavour,		/* core_flovour.  */
-  default_check_format,			/* check_format.  */
-  default_core_sniffer,			/* core_sniffer.  */
-  fetch_core_registers,			/* core_read_registers.  */
-  NULL
-};
-
 static struct core_fns arm_netbsd_elfcore_fns =
 {
   bfd_target_elf_flavour,		/* core_flovour.  */
@@ -498,6 +470,5 @@ _initialize_arm_netbsd_nat (void)
   t->to_store_registers = armnbsd_store_registers;
   add_target (t);
 
-  deprecated_add_core_fns (&arm_netbsd_core_fns);
   deprecated_add_core_fns (&arm_netbsd_elfcore_fns);
 }
diff --git a/gdb/armnbsd-tdep.c b/gdb/armnbsd-tdep.c
index abb7637..8113a4b 100644
--- a/gdb/armnbsd-tdep.c
+++ b/gdb/armnbsd-tdep.c
@@ -72,17 +72,6 @@ arm_netbsd_init_abi_common (struct gdbarch_info info,
 }
   
 static void
-arm_netbsd_aout_init_abi (struct gdbarch_info info, 
-			  struct gdbarch *gdbarch)
-{
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-
-  arm_netbsd_init_abi_common (info, gdbarch);
-  if (tdep->fp_model == ARM_FLOAT_AUTO)
-    tdep->fp_model = ARM_FLOAT_SOFT_FPA;
-}
-
-static void
 arm_netbsd_elf_init_abi (struct gdbarch_info info,
 			 struct gdbarch *gdbarch)
 {
@@ -97,26 +86,12 @@ arm_netbsd_elf_init_abi (struct gdbarch_info info,
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
-static enum gdb_osabi
-arm_netbsd_aout_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "a.out-arm-netbsd") == 0)
-    return GDB_OSABI_NETBSD_AOUT;
-
-  return GDB_OSABI_UNKNOWN;
-}
-
 /* Provide a prototype to silence -Wmissing-prototypes.  */
 extern initialize_file_ftype _initialize_arm_netbsd_tdep;
 
 void
 _initialize_arm_netbsd_tdep (void)
 {
-  gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_aout_flavour,
-				  arm_netbsd_aout_osabi_sniffer);
-
-  gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_NETBSD_AOUT,
-                          arm_netbsd_aout_init_abi);
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_NETBSD_ELF,
                           arm_netbsd_elf_init_abi);
 }
diff --git a/gdb/i386bsd-tdep.c b/gdb/i386bsd-tdep.c
index aa10393..f608889 100644
--- a/gdb/i386bsd-tdep.c
+++ b/gdb/i386bsd-tdep.c
@@ -22,7 +22,6 @@
 #include "frame.h"
 #include "gdbcore.h"
 #include "regcache.h"
-#include "osabi.h"
 
 #include "gdb_string.h"
 
@@ -86,40 +85,3 @@ i386bsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->sc_reg_offset = i386bsd_sc_reg_offset;
   tdep->sc_num_regs = ARRAY_SIZE (i386bsd_sc_reg_offset);
 }
-
-\f
-static enum gdb_osabi
-i386bsd_aout_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "a.out-i386-netbsd") == 0)
-    return GDB_OSABI_NETBSD_AOUT;
-
-  if (strcmp (bfd_get_target (abfd), "a.out-i386-freebsd") == 0)
-    return GDB_OSABI_FREEBSD_AOUT;
-
-  return GDB_OSABI_UNKNOWN;
-}
-
-static enum gdb_osabi
-i386bsd_core_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "netbsd-core") == 0)
-    return GDB_OSABI_NETBSD_AOUT;
-
-  return GDB_OSABI_UNKNOWN;
-}
-
-\f
-/* Provide a prototype to silence -Wmissing-prototypes.  */
-void _initialize_i386bsd_tdep (void);
-
-void
-_initialize_i386bsd_tdep (void)
-{
-  gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_aout_flavour,
-				  i386bsd_aout_osabi_sniffer);
-
-  /* BFD doesn't set a flavour for NetBSD style a.out core files.  */
-  gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_unknown_flavour,
-				  i386bsd_core_osabi_sniffer);
-}
diff --git a/gdb/m68kbsd-tdep.c b/gdb/m68kbsd-tdep.c
index 178acee..4a4d715 100644
--- a/gdb/m68kbsd-tdep.c
+++ b/gdb/m68kbsd-tdep.c
@@ -202,20 +202,6 @@ m68kbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, m68kbsd_regset_from_core_section);
 }
 
-/* OpenBSD and NetBSD a.out.  */
-
-static void
-m68kbsd_aout_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
-{
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-
-  m68kbsd_init_abi (info, gdbarch);
-
-  tdep->struct_return = reg_struct_return;
-
-  tramp_frame_prepend_unwinder (gdbarch, &m68kobsd_sigtramp);
-}
-
 /* NetBSD ELF.  */
 
 static void
@@ -235,41 +221,12 @@ m68kbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 }
 \f
 
-static enum gdb_osabi
-m68kbsd_aout_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "a.out-m68k-netbsd") == 0
-      || strcmp (bfd_get_target (abfd), "a.out-m68k4k-netbsd") == 0)
-    return GDB_OSABI_NETBSD_AOUT;
-
-  return GDB_OSABI_UNKNOWN;
-}
-
-static enum gdb_osabi
-m68kbsd_core_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "netbsd-core") == 0)
-    return GDB_OSABI_NETBSD_AOUT;
-
-  return GDB_OSABI_UNKNOWN;
-}
-\f
-
 /* Provide a prototype to silence -Wmissing-prototypes.  */
 void _initialize_m68kbsd_tdep (void);
 
 void
 _initialize_m68kbsd_tdep (void)
 {
-  gdbarch_register_osabi_sniffer (bfd_arch_m68k, bfd_target_aout_flavour,
-				  m68kbsd_aout_osabi_sniffer);
-
-  /* BFD doesn't set a flavour for NetBSD style a.out core files.  */
-  gdbarch_register_osabi_sniffer (bfd_arch_m68k, bfd_target_unknown_flavour,
-				  m68kbsd_core_osabi_sniffer);
-
-  gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_NETBSD_AOUT,
-			  m68kbsd_aout_init_abi);
   gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_NETBSD_ELF,
 			  m68kbsd_elf_init_abi);
 }
diff --git a/gdb/sparcnbsd-tdep.c b/gdb/sparcnbsd-tdep.c
index 7fff210..8d35994 100644
--- a/gdb/sparcnbsd-tdep.c
+++ b/gdb/sparcnbsd-tdep.c
@@ -304,12 +304,6 @@ sparc32nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_append_unwinder (gdbarch, &sparc32nbsd_sigcontext_frame_unwind);
 }
 
-static void
-sparc32nbsd_aout_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
-{
-  sparc32nbsd_init_abi (info, gdbarch);
-}
-
 void
 sparc32nbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 {
@@ -319,37 +313,6 @@ sparc32nbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
-static enum gdb_osabi
-sparcnbsd_aout_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "a.out-sparc-netbsd") == 0)
-    return GDB_OSABI_NETBSD_AOUT;
-
-  return GDB_OSABI_UNKNOWN;
-}
-
-/* OpenBSD uses the traditional NetBSD core file format, even for
-   ports that use ELF.  Therefore, if the default OS ABI is OpenBSD
-   ELF, we return that instead of NetBSD a.out.  This is mainly for
-   the benfit of OpenBSD/sparc64, which inherits the sniffer below
-   since we include this file for an OpenBSD/sparc64 target.  For
-   OpenBSD/sparc, the NetBSD a.out OS ABI is probably similar enough
-   to both the OpenBSD a.out and the OpenBSD ELF OS ABI.  */
-#if defined (GDB_OSABI_DEFAULT) && (GDB_OSABI_DEFAULT == GDB_OSABI_OPENBSD_ELF)
-#define GDB_OSABI_NETBSD_CORE GDB_OSABI_OPENBSD_ELF
-#else
-#define GDB_OSABI_NETBSD_CORE GDB_OSABI_NETBSD_AOUT
-#endif
-
-static enum gdb_osabi
-sparcnbsd_core_osabi_sniffer (bfd *abfd)
-{
-  if (strcmp (bfd_get_target (abfd), "netbsd-core") == 0)
-    return GDB_OSABI_NETBSD_CORE;
-
-  return GDB_OSABI_UNKNOWN;
-}
-
 \f
 /* Provide a prototype to silence -Wmissing-prototypes.  */
 void _initialize_sparcnbsd_tdep (void);
@@ -357,15 +320,6 @@ void _initialize_sparcnbsd_tdep (void);
 void
 _initialize_sparcnbsd_tdep (void)
 {
-  gdbarch_register_osabi_sniffer (bfd_arch_sparc, bfd_target_aout_flavour,
-				  sparcnbsd_aout_osabi_sniffer);
-
-  /* BFD doesn't set a flavour for NetBSD style a.out core files.  */
-  gdbarch_register_osabi_sniffer (bfd_arch_sparc, bfd_target_unknown_flavour,
-                                  sparcnbsd_core_osabi_sniffer);
-
-  gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_NETBSD_AOUT,
-			  sparc32nbsd_aout_init_abi);
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_NETBSD_ELF,
 			  sparc32nbsd_elf_init_abi);
 }


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-21 13:13       ` [patchv4 " Jan Kratochvil
  2013-09-22 12:26         ` Jan Kratochvil
@ 2013-09-23 20:30         ` Mark Kettenis
  2013-09-24 13:52           ` [commit] " Jan Kratochvil
  1 sibling, 1 reply; 14+ messages in thread
From: Mark Kettenis @ 2013-09-23 20:30 UTC (permalink / raw)
  To: jan.kratochvil; +Cc: gdb-patches, palves

> Date: Sat, 21 Sep 2013 15:13:11 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> On Fri, 20 Sep 2013 11:24:28 +0200, Mark Kettenis wrote:
> > There's a bit of a problem here.  The removal of some of the -netbsd*
> > stuff will also remove support for some of the NetBSD ELF targets.
> > That should not happen.  So I think you should:
> > 
> > 1. Drop the configure.tgt bit from this diff.  The removal of a.out
> >    support should only affect *native* builds.
> 
> OK, I see now that the targets support is indifferent for a.out vs. ELF.
> 
> One could additionally disable a.out targets (and permit their *elf
> counterparts) but that would be needless limitation of GDB.

Right.

> > 2. Adjust the NEWS to only list the old OpenBSD/i386 and explicit
> >    NetBSD a.out bits.
> 
> Not sure I understood, the NEWS file lists only the explicit hosts.

My idea was not to worry too much about the exact host triplets that
are no longer supported.  Most of these switched to ELF more than 10
years ago, and chances of somebody actually building a current GDB on
such a system are close to zero.  I'd just blacklist *-netbsdaout* and
start treating *-netbsd* as an alias for *-netbsdelf*.  But what you
did looks correct, so you probably should just go ahead with this.

> On Fri, 20 Sep 2013 10:43:24 +0200, Pedro Alves wrote:
> > Should we add these to the "Configuration $host is obsolete"
> > case at the top of gdb/configure.host?
> 
> Done.
> 
> 
> Thanks,
> Jan
> 
> 
> gdb/
> 2013-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	Remove a.out NetBSD and OpenBSD hosts.
> 	* NEWS (Removed native configurations): New.
> 	* config/arm/nbsdaout.mh: Remove.
> 	* config/i386/nbsdaout.mh: Remove.
> 	* config/i386/obsdaout.mh: Remove.
> 	* config/m68k/nbsdaout.mh: Remove.
> 	* config/sparc/nbsdaout.mh: Remove.
> 	* config/vax/nbsdaout.mh: Remove.
> 	* configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
> 	(i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
> 	(m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
> 	error.
> 	(arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
> 	(i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
> 	(sparc-*-netbsd*, vax-*-netbsd*): Remove.
> 
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -25,6 +25,19 @@ Nios II ELF 			nios2*-*-elf
>  Nios II GNU/Linux		nios2*-*-linux
>  Texas Instruments MSP430	msp430*-*-elf
>  
> +* Removed native configurations
> +
> +Support for these a.out NetBSD and OpenBSD obsolete configurations has
> +been removed.  ELF variants of these configurations are kept supported.
> +
> +arm*-*-netbsd*              but arm*-*-netbsdelf*       is kept supported.
> +i[34567]86-*-netbsd*        but i[34567]86-*-netbsdelf* is kept supported.
> +i[34567]86-*-openbsd[0-2].* but i[34567]86-*-openbsd*   is kept supported.
> +i[34567]86-*-openbsd3.[0-3]
> +m68*-*-netbsd*              but m68*-*-netbsdelf*       is kept supported.
> +sparc-*-netbsd*             but sparc-*-netbsdelf*      is kept supported.
> +vax-*-netbsd*               but vax-*-netbsdelf*        is kept supported.
> +
>  * New commands:
>  catch rethrow
>    Like "catch throw", but catches a re-thrown exception.
> --- a/gdb/config/arm/nbsdaout.mh
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -# Host: NetBSD/arm
> -NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o \
> -	solib-sunos.o
> --- a/gdb/config/i386/nbsdaout.mh
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -# Host: NetBSD/i386 a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/i386/obsdaout.mh
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -# Host: OpenBSD/i386 a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/m68k/nbsdaout.mh
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# Host: NetBSD/m68k a.out
> -NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/sparc/nbsdaout.mh
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# Host: NetBSD/sparc a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/config/vax/nbsdaout.mh
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -# Host: NetBSD/vax a.out
> -NATDEPFILES= fork-child.o inf-ptrace.o \
> -	vaxbsd-nat.o bsd-kvm.o \
> -	solib-sunos.o
> -
> -LOADLIBES= -lkvm
> --- a/gdb/configure.host
> +++ b/gdb/configure.host
> @@ -13,12 +13,21 @@
>  # The default is $host_cpu.
>  
>  case $host in
> + arm*-*-netbsdelf* | \
> + i[34567]86-*-netbsdelf* | \
> + m68*-*-netbsdelf* | \
> + sparc-*-netbsdelf* | \
> + vax-*-netbsdelf*)
> +    ;;
>   alpha*-*-osf1* | \
>   alpha*-*-osf2* | \
> + arm*-*-netbsd* | \
>   hppa*-*-hiux* | \
>   i[34567]86-ncr-* | \
>   i[34567]86-*-dgux* | \
>   i[34567]86-*-lynxos* | \
> + i[34567]86-*-netbsd* | \
> + i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3] | \
>   i[34567]86-*-sco3.2v5* | \
>   i[34567]86-*-sco3.2v4* | \
>   i[34567]86-*-sco* | \
> @@ -29,7 +38,10 @@ case $host in
>   i[34567]86-*-unixware* | \
>   i[34567]86-*-sysv* | \
>   i[34567]86-*-isc* | \
> + m68*-*-netbsd* | \
> + sparc-*-netbsd* | \
>   rs6000-*-lynxos* | \
> + vax-*-netbsd* | \
>   null)
>      echo "*** Configuration $host is obsolete." >&2
>      echo "*** Support has been REMOVED." >&2
> @@ -78,7 +90,6 @@ alpha*-*-openbsd*)	gdb_host=nbsd ;;
>  arm*-*-linux*)		gdb_host=linux ;;
>  arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -arm*-*-netbsd*)		gdb_host=nbsdaout ;;
>  arm*-*-openbsd*)	gdb_host=nbsdelf ;;
>  
>  hppa*-*-hpux*)
> @@ -91,7 +102,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
>  			gdb_host=fbsd ;;
>  i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
>  i[34567]86-*-go32*)	gdb_host=go32 ;;
>  i[34567]86-*-mingw32*)	gdb_host=mingw
>  			gdb_host_obs=mingw-hdep.o
> @@ -100,8 +110,6 @@ i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
>  i[34567]86-*-linux*)	gdb_host=linux ;;
>  i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
>  i[3456]86-*-nto*) 	gdb_host=nto ;;
> -i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
> -			gdb_host=obsdaout ;;
>  i[34567]86-*-openbsd*)	gdb_host=obsd ;;
>  i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
>  			gdb_host=sol2-64 ;;
> @@ -114,7 +122,6 @@ ia64-*-linux*)		gdb_host=linux ;;
>  m68*-*-linux*)		gdb_host=linux ;;
>  m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -m68*-*-netbsd*)		gdb_host=nbsdaout ;;
>  m68*-*-openbsd*)	gdb_host=obsd ;;
>  
>  m88*-*-openbsd*)	gdb_host=obsd ;;
> @@ -154,8 +161,6 @@ sparc-*-linux*)		gdb_host=linux ;;
>  sparc64-*-linux*)	gdb_host=linux64 ;;
>  sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
> -sparc-*-netbsd*)	gdb_host=nbsdaout ;;
>  sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
>  			gdb_host=nbsd64 ;;
>  sparc-*-openbsd*)	gdb_host=nbsdelf ;;
> @@ -169,7 +174,6 @@ tilegx-*-linux*)	gdb_host=linux ;;
>  vax-*-bsd*)		gdb_host=vax ;;
>  vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
>  			gdb_host=nbsdelf ;;
> -vax-*-netbsd*)		gdb_host=nbsdaout ;;
>  vax-*-openbsd*)		gdb_host=obsd ;;
>  vax-*-ultrix*)		gdb_host=vax ;;
>  
> 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-22 12:26         ` Jan Kratochvil
@ 2013-09-23 20:32           ` Mark Kettenis
  0 siblings, 0 replies; 14+ messages in thread
From: Mark Kettenis @ 2013-09-23 20:32 UTC (permalink / raw)
  To: jan.kratochvil; +Cc: mark.kettenis, gdb-patches, palves

> Date: Sun, 22 Sep 2013 14:26:46 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> Hi Mark,
> 
> additionally I thought one can remove a.out support from *bsd-{nat,tdep}.c
> files.  But then I found in sparcnbsd-tdep.c:
> 
> /* OpenBSD uses the traditional NetBSD core file format, even for
>    ports that use ELF.  Therefore, if the default OS ABI is OpenBSD
>    ELF, we return that instead of NetBSD a.out.  This is mainly for
>    the benfit of OpenBSD/sparc64, which inherits the sniffer below
>    since we include this file for an OpenBSD/sparc64 target.  For
>    OpenBSD/sparc, the NetBSD a.out OS ABI is probably similar enough
>    to both the OpenBSD a.out and the OpenBSD ELF OS ABI.  */
> #if defined (GDB_OSABI_DEFAULT) && (GDB_OSABI_DEFAULT == GDB_OSABI_OPENBSD_ELF)
> #define GDB_OSABI_NETBSD_CORE GDB_OSABI_OPENBSD_ELF
> #else
> #define GDB_OSABI_NETBSD_CORE GDB_OSABI_NETBSD_AOUT
> #endif
> 
> OTOH there is even code for ELF BSD core files. Still the patch
> would probably regress OpenBSD so just posting it here as is FYI
> without ChangeLog.

The switch of core files from traditional ("a.out") to ELF format in
OpenBSD was fairly recent, so I don't think it is time yet to do this.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [commit] [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
  2013-09-23 20:30         ` Mark Kettenis
@ 2013-09-24 13:52           ` Jan Kratochvil
  0 siblings, 0 replies; 14+ messages in thread
From: Jan Kratochvil @ 2013-09-24 13:52 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches, palves

On Mon, 23 Sep 2013 22:30:28 +0200, Mark Kettenis wrote:
> My idea was not to worry too much about the exact host triplets that
> are no longer supported.  Most of these switched to ELF more than 10
> years ago, and chances of somebody actually building a current GDB on
> such a system are close to zero.  I'd just blacklist *-netbsdaout* and
> start treating *-netbsd* as an alias for *-netbsdelf*.  But what you
> did looks correct, so you probably should just go ahead with this.

Therefore checked it in:
	https://sourceware.org/ml/gdb-cvs/2013-09/msg00136.html


Thanks,
Jan


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-09-24 13:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-19 20:02 [patch 1/2] Remove a.out NetBSD and OpenBSD targets Jan Kratochvil
2013-09-19 20:26 ` [patchv2 " Jan Kratochvil
2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
2013-09-20  7:40     ` Eli Zaretskii
2013-09-20  7:47       ` Jan Kratochvil
2013-09-20  8:36         ` Eli Zaretskii
2013-09-20  8:43     ` Pedro Alves
2013-09-21 13:13       ` [patchv4 " Jan Kratochvil
2013-09-22 12:26         ` Jan Kratochvil
2013-09-23 20:32           ` Mark Kettenis
2013-09-23 20:30         ` Mark Kettenis
2013-09-24 13:52           ` [commit] " Jan Kratochvil
2013-09-20  9:24     ` [patchv3 " Mark Kettenis
2013-09-20  7:40   ` [patchv2 1/2] Remove a.out NetBSD and OpenBSD targets Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox