[PATCH 4/5] powerpc64-aix ptrace64 when defined.
David Edelsohn
dje.gcc@gmail.com
Sat Aug 10 02:57:00 GMT 2013
[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
More information about the Gdb-patches
mailing list