Index: gdb/gdb_ptrace.h |
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h |
index 5b46a818bd2d1f71cc39729c023b3f56e3882468..053a7185861b370ced050362aa261da621dc7c49 100644 |
--- a/gdb/gdb_ptrace.h |
+++ b/gdb/gdb_ptrace.h |
@@ -1,6 +1,6 @@ |
/* Portable <sys/ptrace.h> |
- Copyright (C) 2004-2005, 2007-2012 Free Software Foundation, Inc. |
+ Copyright (C) 2004-2013 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -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 */ |