summaryrefslogtreecommitdiff
path: root/gdb/gdb_ptrace.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2013-08-07 14:39:56 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2013-08-07 14:39:56 +0000
commit56e2a2246a5a29c05c6c15a58d6bd51bce793612 (patch)
treeea31977806739a17c8188a70af6a0eaa3fc11db0 /gdb/gdb_ptrace.h
parentdd2262da43e9a71d5d1bf7b6fdae975012b6992f (diff)
downloadgdb-56e2a2246a5a29c05c6c15a58d6bd51bce793612.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.h10
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 */