Trouble with ptrace

Timo Juhani Lindfors timo.lindfors at iki.fi
Thu Jan 15 19:28:27 CET 2009


Bilal Mehdi <bilal.mehdi at yahoo.com> writes:
> Please tell me if you know how to use ptrace for arm architecture
> ... and if you know any other way to use ptrace ... please tell

Don't use PEEKUSER. use PTRACE_GETREGS.

apt-get source strace

shows that it does

#elif defined (ARM)
        /*
         * Read complete register set in one go.
         */
        if (ptrace(PTRACE_GETREGS, pid, NULL, (void *)&regs) == -1)
                return -1;




More information about the support mailing list