* xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
authorStu Grossman <grossman@cygnus>
Sat, 1 Feb 1992 12:46:55 +0000 (12:46 +0000)
committerStu Grossman <grossman@cygnus>
Sat, 1 Feb 1992 12:46:55 +0000 (12:46 +0000)
config/mh-vaxbsd, configure.in:  Split up config stuff for Vaxen
into BSD and Ultrix.

gdb/config/vaxbsd.mh [new file with mode: 0644]
gdb/config/vaxult.mh [new file with mode: 0644]
gdb/configure.in
gdb/xm-vax.h
gdb/xm-vaxbsd.h [new file with mode: 0644]
gdb/xm-vaxult.h [new file with mode: 0644]

diff --git a/gdb/config/vaxbsd.mh b/gdb/config/vaxbsd.mh
new file mode 100644 (file)
index 0000000..832ab76
--- /dev/null
@@ -0,0 +1,12 @@
+# Host: DEC VAX running BSD
+# The following types of /bin/cc failures have been observed:
+# 1.  Something in readline.c which I have never seen
+# 2.  ``"values.c", line 816: compiler error: schain botch''
+#msg /bin/cc has been known to fail on VAXen running BSD4.3
+#msg If this occurs, use gcc
+#msg  (but see comments in Makefile.dist about compiling with gcc).
+
+XDEPFILES= infptrace.o coredep.o
+REGEX=regex.o
+REGEX1=regex.o
+XM_FILE= xm-vaxbsd.h
diff --git a/gdb/config/vaxult.mh b/gdb/config/vaxult.mh
new file mode 100644 (file)
index 0000000..fa075ce
--- /dev/null
@@ -0,0 +1,6 @@
+# Host: DEC VAX running Ultrix
+
+XDEPFILES= infptrace.o coredep.o
+REGEX=regex.o
+REGEX1=regex.o
+XM_FILE= xm-vaxult.h
index 2e9813e632207550b56fcd99b02edd08b08c1032..e906434e3474f4d75212d24265135252f713cfb7 100644 (file)
@@ -129,7 +129,16 @@ m88k)
        esac
        ;;
 
-arm | vax | merlin | none | np1 | pn | pyramid | tahoe)
+vax)
+       case "${host_os}" in
+       bsd*)
+               gdb_host=vaxbsd ;;
+       ultrix*)
+               gdb_host=vaxult ;;
+       esac
+       ;;
+
+arm | merlin | none | np1 | pn | pyramid | tahoe)
        gdb_host=${host_cpu}
        ;;
 
index ceb59ab2f096abe0fba88adff7a12fd20ffb3605..778602aedbcca83b7b9a9842cc51ff7d9a2fa924 100644 (file)
@@ -1,4 +1,4 @@
-/* Definitions to make GDB run on a vax under 4.2bsd.
+/* Common definitions to make GDB run on Vaxen under 4.2bsd and Ultrix.
    Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
 
 This file is part of GDB.
@@ -17,13 +17,6 @@ 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#ifndef ultrix /* FIXME */
-/* We have to include these files now, so that GDB will not make
-   competing definitions in defs.h.  */
-#include <machine/endian.h>
-#include <machine/limits.h>
-#endif /* ultrix */
-
 #define HOST_BYTE_ORDER LITTLE_ENDIAN
 
 /* Get rid of any system-imposed stack limit if possible.  */
diff --git a/gdb/xm-vaxbsd.h b/gdb/xm-vaxbsd.h
new file mode 100644 (file)
index 0000000..c072d99
--- /dev/null
@@ -0,0 +1,7 @@
+/* Definitions to make GDB run on a vax under 4.2bsd.
+
+/* We have to include these files now, so that GDB will not make
+   competing definitions in defs.h.  */
+#include <machine/endian.h>
+#include <machine/limits.h>
+#include "xm-vax.h"
diff --git a/gdb/xm-vaxult.h b/gdb/xm-vaxult.h
new file mode 100644 (file)
index 0000000..3a7e986
--- /dev/null
@@ -0,0 +1,3 @@
+/* Definitions to make GDB run on a vax under Ultrix.
+
+#include "xm-vax.h"