From b08ee99f15ab5b1a2bf4572f34fdd1322debecb8 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 7 Aug 2013 14:39:57 +0000 Subject: 2013-08-07 Raunaq Bathija Ulrich Weigand * 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. --- gdb/gdb_ptrace.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gdb/gdb_ptrace.h') diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h index 5c2a433..053a718 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 */ -- cgit v1.1