From 0c5af733b1eafcbc2efeb5a703a532ed86b1ac22 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 3 Jul 1993 00:36:35 +0000 Subject: [PATCH] * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here rather than including xm-bigmips.h. --- gdb/ChangeLog | 3 +++ gdb/config/mips/nm-irix3.h | 5 +++++ gdb/config/mips/nm-irix4.h | 5 +++++ gdb/config/mips/xm-irix3.h | 13 +++++++++++-- gdb/config/mips/xm-irix4.h | 21 +++++---------------- 5 files changed, 29 insertions(+), 18 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 037b38bac9c..835da8fa476 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Fri Jul 2 18:22:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here + rather than including xm-bigmips.h. + * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and default cases. diff --git a/gdb/config/mips/nm-irix3.h b/gdb/config/mips/nm-irix3.h index 0b77e5f4893..ca6f4708877 100644 --- a/gdb/config/mips/nm-irix3.h +++ b/gdb/config/mips/nm-irix3.h @@ -29,3 +29,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) + +/* Is this really true or is this just a leftover from a DECstation + config file? */ + +#define ONE_PROCESS_WRITETEXT diff --git a/gdb/config/mips/nm-irix4.h b/gdb/config/mips/nm-irix4.h index 340dade4c86..81d27086f8d 100644 --- a/gdb/config/mips/nm-irix4.h +++ b/gdb/config/mips/nm-irix4.h @@ -29,3 +29,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef FETCH_INFERIOR_REGISTERS #define U_REGS_OFFSET 0 + +/* Is this really true or is this just a leftover from a DECstation + config file? */ + +#define ONE_PROCESS_WRITETEXT diff --git a/gdb/config/mips/xm-irix3.h b/gdb/config/mips/xm-irix3.h index 24cc561c2aa..41f02d981c2 100644 --- a/gdb/config/mips/xm-irix3.h +++ b/gdb/config/mips/xm-irix3.h @@ -20,7 +20,17 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_TERMIO -#include "mips/xm-bigmips.h" +/* Get rid of any system-imposed stack limit if possible */ + +#define SET_STACK_LIMIT_HUGE + +#define HOST_BYTE_ORDER BIG_ENDIAN + +/* memcpy and memset return void *, not char *. */ + +extern void *memcpy(); +extern void *memset(); +#define MEM_FNS_DECLARED /* Override register locations in upage for SGI machines */ #undef REGISTER_U_ADDR @@ -29,4 +39,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ addr = regno; \ else \ addr = regno + NSIG_HNDLRS; /* Skip over signal handlers */ - diff --git a/gdb/config/mips/xm-irix4.h b/gdb/config/mips/xm-irix4.h index aa74a7de85f..91bb97b9d20 100644 --- a/gdb/config/mips/xm-irix4.h +++ b/gdb/config/mips/xm-irix4.h @@ -20,22 +20,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* This is for the iris. */ -#define HAVE_TERMIO - -#include "mips/xm-bigmips.h" - -/* Override register locations in upage for SGI machines */ -#undef REGISTER_U_ADDR -#define REGISTER_U_ADDR(addr, blockend, regno) \ - if (regno < PC_REGNUM) \ - addr = regno; \ - else \ - addr = regno + NSIG_HNDLRS; /* Skip over signal handlers */ - -/* BEGIN GW MODS */ -/* Irix defines psignal() in signal.h, which gets gcc rather angry at us - * because their definition is markedly different. - */ +#include "mips/xm-irix3.h" + +/* Irix defines psignal() in signal.h, in a way which conflicts with the + definition in defs.h. */ + #define PSIGNAL_IN_SIGNAL_H #define BROKEN_SIGINFO_H /* si_pid & si_uid are bogus */ -- 2.30.2