2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
[deliverable/binutils-gdb.git] / gdb / gdb_ptrace.h
index 5c2a43314dca8eddeddcbdb18b5ad78c837cfa0e..053a7185861b370ced050362aa261da621dc7c49 100644 (file)
@@ -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 */
This page took 0.023961 seconds and 4 git commands to generate.