diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2013-08-07 14:39:57 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2013-08-07 14:39:57 +0000 |
commit | b08ee99f15ab5b1a2bf4572f34fdd1322debecb8 (patch) | |
tree | 1ea1c86f2228d784f1d67c0c329f730200a88414 /gdb/gdb_ptrace.h | |
parent | fecf803efafe6339bb45401ecbaef00b9a85295e (diff) | |
download | binutils-gdb-b08ee99f15ab5b1a2bf4572f34fdd1322debecb8.tar.gz |
2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
Ulrich Weigand <uweigand@de.ibm.com>
* gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
is defined.
* rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
(rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
(rs6000_ptrace64): Call ptace64 instead of ptracex if present.
* configure.ac: Check for ptrace64.
* configure, config.in: Regenerate.
Diffstat (limited to 'gdb/gdb_ptrace.h')
-rw-r--r-- | gdb/gdb_ptrace.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h index 5c2a43314dc..053a7185861 100644 --- a/gdb/gdb_ptrace.h +++ b/gdb/gdb_ptrace.h @@ -135,7 +135,15 @@ extern PTRACE_TYPE_RET ptrace(); zero. */ #ifdef PTRACE_TYPE_ARG5 -# define ptrace(request, pid, addr, data) ptrace (request, pid, addr, data, 0) +# ifdef HAVE_PTRACE64 +# define ptrace(request, pid, addr, data) \ + ptrace64 (request, pid, addr, data, 0) +# undef PTRACE_TYPE_ARG3 +# define PTRACE_TYPE_ARG3 long long +# else +# define ptrace(request, pid, addr, data) \ + ptrace (request, pid, addr, data, 0) +# endif #endif #endif /* gdb_ptrace.h */ |