From 088760fe8ccb5c15574756d27d7fef23721d30f9 Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Mon, 14 Apr 1997 09:11:52 +0000 Subject: 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. --- gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh | 9 --------- gnu/usr.bin/binutils/gdb/config/mips/arcmips.mt | 3 --- gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mh | 9 +++++++++ gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mt | 3 +++ gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh | 9 +++++++++ gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mt | 3 +++ gnu/usr.bin/binutils/gdb/configure | 4 ++-- gnu/usr.bin/binutils/gdb/configure.host | 3 ++- gnu/usr.bin/binutils/gdb/configure.tgt | 3 ++- 9 files changed, 30 insertions(+), 16 deletions(-) delete mode 100644 gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh delete mode 100644 gnu/usr.bin/binutils/gdb/config/mips/arcmips.mt create mode 100644 gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mh create mode 100644 gnu/usr.bin/binutils/gdb/config/mips/mipseb_obsd.mt create mode 100644 gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh create mode 100644 gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mt diff --git a/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh b/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh deleted file mode 100644 index 243edef75a5..00000000000 --- a/gnu/usr.bin/binutils/gdb/config/mips/arcmips.mh +++ /dev/null @@ -1,9 +0,0 @@ -# Host: Little-endian MIPS machine such as ARC systems. -XDEPFILES= -XM_FILE= xm-mips.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/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/mipsel_obsd.mh b/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh new file mode 100644 index 00000000000..da4d3923271 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/mips/mipsel_obsd.mh @@ -0,0 +1,9 @@ +# Host: OpenBSD Mips based systems. (arc etc.) +XDEPFILES= +XM_FILE= xm-mips.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/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 ;; -- cgit v1.2.3