[PATCH] Update OpenBSD/i386 config

Mark Kettenis kettenis@chello.nl
Mon Jul 1 09:56:00 GMT 2002


OpenBSD/i386 is identical to NetBSD/i386 a.out as far as GDB is
concerned.  This patch also makes sure we can build on OpenBSD with
the native yacc.  It's a bit of a hack but it works.  If someone has a
better idea, please tell me.

Checked in.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
	* configure.tgt (i[3456]86-*-openbsd*): Fold into
	i[3456]86-*-netbsd* case.
	* config/i386/tm-obsd.h: Removed.
	* config/i386/obsd.mt: Removed.
	* config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
	core-aout.o.
	(MH_CFLAGS): Add -DYYDEBUG=0.

Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.69
diff -u -p -r1.69 configure.tgt
--- configure.tgt 21 Jun 2002 21:19:57 -0000 1.69
+++ configure.tgt 30 Jun 2002 17:16:10 -0000
@@ -94,12 +94,12 @@ i[3456]86-*-aix*)	gdb_target=i386aix ;;
 i[3456]86-*-bsd*)	gdb_target=i386bsd ;;
 i[3456]86-*-freebsd*)	gdb_target=fbsd ;;
 i[3456]86-*-netbsdelf*)	gdb_target=nbsdelf ;;
-i[3456]86-*-netbsd*)	gdb_target=nbsdaout ;;
+i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
+			gdb_target=nbsdaout ;;
 i[3456]86-*-os9k)	gdb_target=i386os9k ;;
 i[3456]86-*-go32*)	gdb_target=i386aout ;;
 i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;;
 i[3456]86-*-lynxos*)	gdb_target=i386lynx ;;
-i[3456]86-*-openbsd*)	gdb_target=obsd ;;
 i[3456]86-*-solaris*)	gdb_target=i386sol2 ;;
 i[3456]86-*-sysv4.2*)	gdb_target=i386v42mp ;;
 i[3456]86-*-sysv4*)	gdb_target=i386v4 ;;
Index: config/i386/obsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/obsd.mh,v
retrieving revision 1.3
diff -u -p -r1.3 obsd.mh
--- config/i386/obsd.mh 11 May 2002 17:22:27 -0000 1.3
+++ config/i386/obsd.mh 30 Jun 2002 17:16:10 -0000
@@ -3,5 +3,9 @@
 XM_FILE= xm-i386.h
 
 NAT_FILE= nm-obsd.h
-# NOTE: Do not spread NATDEPFILES over several lines - it hurts BSD make.
-NATDEPFILES= fork-child.o infptrace.o inftarg.o solib.o solib-sunos.o corelow.o core-aout.o i386-nat.o i386bsd-nat.o
+NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o \
+	solib.o solib-sunos.o
+
+# The OpenBSD yacc generates yyname and yyrule tables that conflict at
+# link time if we define YYDEBUG to a non-zero value.
+MH_CFLAGS= -DYYDEBUG=0



More information about the Gdb-patches mailing list