summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-04-14 09:11:52 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-04-14 09:11:52 +0000
commit088760fe8ccb5c15574756d27d7fef23721d30f9 (patch)
tree85f16f0734ccf7825f208314542915bba5d10eea
parent90228cf9d162a8e038079cc7d3c5f70752534574 (diff)
All mips tools should now configure with the same name (mipsel-unknown-openbsd)
for little endian systems and (mips-unknown-openbsd) for big endian systems. gdb seems to work now but needs more testing.
-rw-r--r--gnu/usr.bin/binutils/gdb/config/mips/arcmips.mt3
-rw-r--r--gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mh9
-rw-r--r--gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mt3
-rw-r--r--gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh (renamed from gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh)2
-rw-r--r--gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mt3
-rw-r--r--gnu/usr.bin/binutils/gdb/configure4
-rw-r--r--gnu/usr.bin/binutils/gdb/configure.host3
-rw-r--r--gnu/usr.bin/binutils/gdb/configure.tgt3
8 files changed, 22 insertions, 8 deletions
diff --git a/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mt b/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mt
deleted file mode 100644
index 8abaa2f7ecb..00000000000
--- a/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Target: Little-endian MIPS machine such as ARC systems.
-TDEPFILES= mips-tdep.o
-TM_FILE= tm-mips.h
diff --git a/gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mh b/gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mh
new file mode 100644
index 00000000000..08de689cf6c
--- /dev/null
+++ b/gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mh
@@ -0,0 +1,9 @@
+# Host: OpenBSD Mips Big Endian based systems. (arc etc.)
+XDEPFILES=
+XM_FILE= xm-bigmips.h
+NAT_FILE= nm-mips.h
+NATDEPFILES= infptrace.o inftarg.o corelow.o mips-obsd.o fork-child.o obsdsolib.o
+
+# Use native malloc with real mmap().
+MMALLOC =
+MMALLOC_CFLAGS = -DNO_MMALLOC
diff --git a/gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mt b/gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mt
new file mode 100644
index 00000000000..3cecd31126c
--- /dev/null
+++ b/gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mt
@@ -0,0 +1,3 @@
+# Target: OpenBSD MIPS based systems.
+TDEPFILES= mips-tdep.o
+TM_FILE= tm-bigmips.h
diff --git a/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh b/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh
index 243edef75a5..da4d3923271 100644
--- a/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh
+++ b/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh
@@ -1,4 +1,4 @@
-# Host: Little-endian MIPS machine such as ARC systems.
+# Host: OpenBSD Mips based systems. (arc etc.)
XDEPFILES=
XM_FILE= xm-mips.h
NAT_FILE= nm-mips.h
diff --git a/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mt b/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mt
new file mode 100644
index 00000000000..f01d02a7f51
--- /dev/null
+++ b/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mt
@@ -0,0 +1,3 @@
+# Target: OpenBSD MIPS based systems.
+TDEPFILES= mips-tdep.o
+TM_FILE= tm-mips.h
diff --git a/gnu/usr.bin/binutils/gdb/configure b/gnu/usr.bin/binutils/gdb/configure
index 7d9c5822f85..5aa7e7d2c2b 100644
--- a/gnu/usr.bin/binutils/gdb/configure
+++ b/gnu/usr.bin/binutils/gdb/configure
@@ -2701,13 +2701,13 @@ configdirs="doc testsuite"
frags=
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
if test ! -f ${host_makefile_frag}; then
-{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
+{ echo "configure: error: "*** Gdb does not support host ${host} ${host_makefile_frag}"" 1>&2; exit 1; }
fi
frags="$frags $host_makefile_frag"
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
if test ! -f ${target_makefile_frag}; then
-{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
+{ echo "configure: error: "*** Gdb does not support target ${target} ${target_makefile_frag}"" 1>&2; exit 1; }
fi
frags="$frags $target_makefile_frag"
diff --git a/gnu/usr.bin/binutils/gdb/configure.host b/gnu/usr.bin/binutils/gdb/configure.host
index 52029454847..f2936eba6b4 100644
--- a/gnu/usr.bin/binutils/gdb/configure.host
+++ b/gnu/usr.bin/binutils/gdb/configure.host
@@ -106,7 +106,7 @@ m88*-motorola-sysv*) gdb_host=delta88 ;;
m88*-*-mach3*) gdb_host=mach3 ;;
m88*-*-*) gdb_host=m88k ;;
-mips*-*-openbsd*) gdb_host=arcmips ;;
+mips*el-*-openbsd*) gdb_host=mipsel_obsd ;;
mips-dec-mach3*) gdb_host=mach3 ;;
mips-dec-*) gdb_host=decstation ;;
mips-little-*) gdb_host=littlemips ;;
@@ -115,6 +115,7 @@ mips-sgi-irix4*) gdb_host=irix4 ;;
mips-sgi-irix5*) gdb_host=irix5 ;;
mips-sony-*) gdb_host=news-mips ;;
mips-*-mach3*) gdb_host=mach3 ;;
+mips-*-openbsd*) gdb_host=mipseb_obsd ;;
mips-*-sysv4*) gdb_host=mipsv4 ;;
mips-*-sysv*) gdb_host=riscos ;;
mips-*-riscos*) gdb_host=riscos ;;
diff --git a/gnu/usr.bin/binutils/gdb/configure.tgt b/gnu/usr.bin/binutils/gdb/configure.tgt
index d36baf188e8..0717726aa92 100644
--- a/gnu/usr.bin/binutils/gdb/configure.tgt
+++ b/gnu/usr.bin/binutils/gdb/configure.tgt
@@ -148,7 +148,8 @@ m88*-*-*) gdb_target=m88k ;;
mips64*-big-*) gdb_target=bigmips64 ;;
mips*-big-*) gdb_target=bigmips ;;
-mips*-*-openbsd*) gdb_target=arcmips ;;
+mips*el-*-openbsd*) gdb_target=mipsel_obsd ;;
+mips*-*-openbsd*) gdb_target=mipseb_obsd ;;
mips*-dec-mach3*) gdb_target=mach3 ;;
mips*-dec-*) gdb_target=decstation ;;
mips64*el-*-ecoff*) gdb_target=embedl64 ;;