From 55bee667d8a97e7950025cc348722d16d568510b Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Sat, 1 May 1993 01:39:20 +0000 Subject: [PATCH] * The following patches are from Jeffrey Law . * config/pa/hppabsd.mh: Add more files to NATDEPFILES. * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE. * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs. ptrace needs 5 arguments, #define ptrace to always pass zero as the 5th argument. --- gdb/config/pa/hppabsd.mh | 2 +- gdb/config/pa/xm-hppab.h | 8 ++++++++ gdb/config/pa/xm-hppah.h | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gdb/config/pa/hppabsd.mh b/gdb/config/pa/hppabsd.mh index 2e5b76a750f..ed020a596f2 100644 --- a/gdb/config/pa/hppabsd.mh +++ b/gdb/config/pa/hppabsd.mh @@ -2,4 +2,4 @@ XDEPFILES= XM_FILE= xm-hppab.h NAT_FILE= nm-hppab.h -NATDEPFILES= hppab-nat.o coredep.o corelow.o exec.o +NATDEPFILES= hppab-nat.o coredep.o corelow.o exec.o inftarg.o fork-child.o paread.o diff --git a/gdb/config/pa/xm-hppab.h b/gdb/config/pa/xm-hppab.h index 9ecfd4f7ce7..a98f48d5d1d 100644 --- a/gdb/config/pa/xm-hppab.h +++ b/gdb/config/pa/xm-hppab.h @@ -29,6 +29,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef INT_MIN #define INT_MIN 0x80000000 +/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace + with five arguments, so programs written for normal ptrace lose. + + Idiots. + + (They should have just made it varadic). */ +#define FIVE_ARG_PTRACE + #ifndef hp800 #define USG #endif diff --git a/gdb/config/pa/xm-hppah.h b/gdb/config/pa/xm-hppah.h index 0c10fb650eb..531b8781dcc 100644 --- a/gdb/config/pa/xm-hppah.h +++ b/gdb/config/pa/xm-hppah.h @@ -28,6 +28,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef INT_MIN #define INT_MIN 0x80000000 +/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace + with five arguments, so programs written for normal ptrace lose. + + Idiots. + + (They should have just made it varadic). */ +#define FIVE_ARG_PTRACE + #ifndef hp800 #define USG #endif -- 2.30.2