diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-09 20:07:25 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-09 20:07:25 +0000 |
commit | 8a99c71208d3e6486294fecf3b29abb78ac63f82 (patch) | |
tree | 1d6776c68a312d674a45a5b926c727d7af84fcc8 /gdb | |
parent | 3241e35dd9cf6fded36bc87f1f69690ef87c40e5 (diff) | |
download | gdb-8a99c71208d3e6486294fecf3b29abb78ac63f82.zip gdb-8a99c71208d3e6486294fecf3b29abb78ac63f82.tar.gz gdb-8a99c71208d3e6486294fecf3b29abb78ac63f82.tar.bz2 |
* hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
there, rather than using an ANSI C specific macro.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/hppab-nat.c | 18 |
2 files changed, 9 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 658724d..466d8d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Mon Aug 9 09:53:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg + there, rather than using an ANSI C specific macro. + * 29k-share/udi/udr.c: Include fcntl.h not sys/fcntl.h. Also put sys/types.h near the top (just on general principles). diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c index 42fe316..77f1d57 100644 --- a/gdb/hppab-nat.c +++ b/gdb/hppab-nat.c @@ -27,13 +27,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "target.h" #include <sys/ptrace.h> -#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 @@ -52,14 +45,15 @@ call_ptrace (request, pid, addr, data) PTRACE_ARG3_TYPE addr; int data; { - return ptrace (request, pid, addr, data); + return ptrace (request, pid, addr, data, 0); } -#ifdef DEBUG_PTRACE -/* For the rest of the file, use an extra level of indirection */ -/* This lets us breakpoint usefully on call_ptrace. */ +/* Use an extra level of indirection for ptrace calls. + This lets us breakpoint usefully on call_ptrace. It also + allows us to pass an extra argument to ptrace without + using an ANSI-C specific macro. */ + #define ptrace call_ptrace -#endif void kill_inferior () |