From 2f1c04d17d1d5c77c85aef8084145bdc9395e661 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Sat, 1 May 1993 01:19:43 +0000 Subject: * 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/hppab-nat.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gdb/hppab-nat.c') diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c index b066d64..3d2ca97 100644 --- a/gdb/hppab-nat.c +++ b/gdb/hppab-nat.c @@ -27,9 +27,17 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "target.h" #include +#ifdef FIVE_ARG_PTRACE + +/* Deal with HPUX 8.0 braindamage. */ +#define ptrace(a,b,c,d) ptrace(a,b,c,d,0) + +#endif + #ifndef PT_ATTACH #define PT_ATTACH PTRACE_ATTACH #endif + #ifndef PT_DETACH #define PT_DETACH PTRACE_DETACH #endif @@ -37,7 +45,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* This function simply calls ptrace with the given arguments. It exists so that all calls to ptrace are isolated in this machine-dependent file. */ -#ifdef WANT_NATIVE_TARGET + int call_ptrace (request, pid, addr, data) int request, pid; @@ -46,7 +54,6 @@ call_ptrace (request, pid, addr, data) { return ptrace (request, pid, addr, data); } -#endif /* WANT_NATIVE_TARGET */ #ifdef DEBUG_PTRACE /* For the rest of the file, use an extra level of indirection */ -- cgit v1.1