diff options
Diffstat (limited to 'gdb/gdb_ptrace.h')
-rw-r--r-- | gdb/gdb_ptrace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h index 62a9949d413..f060ce6fc2e 100644 --- a/gdb/gdb_ptrace.h +++ b/gdb/gdb_ptrace.h @@ -107,8 +107,18 @@ /* Some systems, in particular DEC OSF/1, Digital Unix, Compaq Tru64 or whatever it's called these days, don't provide a prototype for ptrace. Provide one to silence compiler warnings. */ + #ifndef HAVE_DECL_PTRACE extern PTRACE_TYPE_RET ptrace(); #endif +/* Some systems, at least AIX and HP-UX have a ptrace with five + arguments. Since we never use the fifth argument, define a ptrace + macro that calls the real ptrace with the last argument set to + zero. */ + +#ifdef PTRACE_TYPE_ARG5 +# define ptrace(request, pid, addr, data) ptrace (request, pid, addr, data, 0) +#endif + #endif /* gdb_ptrace.h */ |