diff --git a/gdb/config/pa/hppabsd.mh b/gdb/config/pa/hppabsd.mh index 2e5b76a750..ed020a596f 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 9ecfd4f7ce..a98f48d5d1 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 0c10fb650e..531b8781dc 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