From: Jim Kingdon Date: Thu, 1 Jul 1993 21:00:15 +0000 (+0000) Subject: miscellaneous fixes to make RISC/os work; see ChangeLog's X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0abbc7715fd8e800364281b37b560a2f11987044;p=binutils-gdb.git miscellaneous fixes to make RISC/os work; see ChangeLog's --- diff --git a/ChangeLog b/ChangeLog index ae44e554eef..1f02612e4a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,19 @@ +Thu Jul 1 15:46:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * configure.in: Use config/mh-riscos for mips-*-sysv*. + +Wed Jun 30 09:31:58 1993 Ian Lance Taylor (ian@cygnus.com) + + * configure: Correct error message for missing Makefile.in to + print correct directory. + Tue Jun 29 13:52:16 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * install.sh: kludge around 386BSD shell bug Tue Jun 29 13:06:49 1993 Per Bothner (bothner@rtl.cygnus.com) + * config.guess: Recognize NeXT. * config.guess: Recognize i486-ncr-sysv4. * Makefile.in (taz): rm $(TOOL)-$$VER before linking. diff --git a/config/mh-riscos b/config/mh-riscos index e69de29bb2d..e586b30b1a9 100644 --- a/config/mh-riscos +++ b/config/mh-riscos @@ -0,0 +1,15 @@ +# This is for a MIPS running RISC/os 4.52C. + +# This is needed for GDB, but needs to be in the top-level make because +# if a library is compiled with the bsd headers and gets linked with the +# sysv system libraries all hell can break loose (e.g. a jmp_buf might be +# a different size). +# ptrace(2) apparently has problems in the BSD environment. No workaround is +# known except to select the sysv environment. Could we use /proc instead? +# These "sysv environments" and "bsd environments" often end up being a pain. +# +# This is not part of CFLAGS because perhaps not all C compilers have this +# option. +CC= cc -systype sysv + +RANLIB = true diff --git a/configure.in b/configure.in index a4aebf585db..654892243e3 100644 --- a/configure.in +++ b/configure.in @@ -90,6 +90,7 @@ case "${host}" in mips-dec-ultrix*) host_makefile_frag=config/mh-decstation ;; mips-sgi-irix4*) host_makefile_frag=config/mh-irix4 ;; mips-sgi-irix3*) host_makefile_frag=config/mh-sysv ;; + mips-*-sysv*) host_makefile_frag=config/mh-riscos ;; i[34]86-ncr-sysv4*) host_makefile_frag=config/mh-ncr3000 ;; i[34]86-*-sco*) host_makefile_frag=config/mh-sco ;; i[34]86-*-isc*) host_makefile_frag=config/mh-sysv ;; diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab06773bb44..55385b00705 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com) + * config/mips/nm-riscos.h: Remove unmatched #endif. + Define FETCH_INFERIOR_REGISTERS. + * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough. + Fix misspelling of NAT_FILE. + * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't print c_line. (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL diff --git a/gdb/config/mips/nm-riscos.h b/gdb/config/mips/nm-riscos.h index 31e829b18d4..a0c5b61fec4 100644 --- a/gdb/config/mips/nm-riscos.h +++ b/gdb/config/mips/nm-riscos.h @@ -41,6 +41,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ addr = PCB_OFFSET(pcb_fpc_eir); \ else \ addr = 0; -#endif #include "mips/nm-mips.h" + +/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ +#define FETCH_INFERIOR_REGISTERS diff --git a/gdb/config/mips/riscos.mh b/gdb/config/mips/riscos.mh index fecc9b5e2af..e160b337f8b 100644 --- a/gdb/config/mips/riscos.mh +++ b/gdb/config/mips/riscos.mh @@ -1,5 +1,5 @@ -NATDEPFILES= infptrace.o inftarg.o fork-child.o coredep.o corelow.o mips-nat.o -NM_FILE= nm-riscos.h +NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o mips-nat.o +NAT_FILE= nm-riscos.h XM_FILE= xm-riscos.h REGEX= regex.o REGEX1= regex.o