[PATCH v4] gdbserver: uclinux: pull in ptrace offset definitions from asm/ptrace.h

Mike Frysinger vapier@gentoo.org
Fri Apr 27 14:49:00 GMT 2012


On Friday 27 April 2012 06:51:26 Will Deacon wrote:
> When debugging a uclinux target, it is necessary to retrieve the text
> and data offsets of the running program in order for symbol resolution
> to work correctly.
> 
> This patch pulls in definitions for PT_{TEXT,DATA,TEXT_END}_ADDR from
> the kernel's exported ptrace header, which can be issued as `magic'
> addresses to the PTRACE_PEEKUSER request in order to retrieve the child
> offsets. For those architectures currently providing their own inline
> definitions, the existing code is used as a fallback if the header
> doesn't provide any overrides.

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120427/0727df1b/attachment.sig>


More information about the Gdb-patches mailing list