This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/5] powerpc64-aix ptrace64 when defined.
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Raunaq 12 <raunaq12 at in dot ibm dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, Ulrich Weigand <uweigand at de dot ibm dot com>, GDB Patches <gdb-patches at sourceware dot org>, Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Date: Fri, 9 Aug 2013 22:57:44 -0400
- Subject: Re: [PATCH 4/5] powerpc64-aix ptrace64 when defined.
[Trying again because GMail insists on sending HTML which
sourceware.org rejects.]
> When GDB is compiled in 64 BIT mode ptrace and ptracex calls are not
defined on AIX. So, instead we check if ptrace64 is defined, if it is then
we call that instead of ptrace/x.
Have you tested the patch in both 32 bit mode and 64 bit mode for both host
GDB and target debugee? I tried the earlier version of this patch from last
year and experienced problems debugging in 32 bit mode (I no longer could
debug GCC).
ptrace, ptracex and ptrace64 are defined in syscalls.exp
ptrace64 syscall3264
# 32
ptrace syscall32
ptracex syscall32
As you wrote, ptrace and ptracex are 32 bit only APIs; ptrace64 is
available as 32 bit and 64 bit API. ptrace64 is suppose to support 32 bit
debugee targets, but I experienced problems.
A configure probe of ptrace64 will compile and link in 32 bit mode and
configure will discover it as available when building 32 bit GDB.
Is your intention to always use ptrace64 when it is available or only to
use it for GDB built and hosted on 64 bit mode?
Thanks, David