Re: sys/ptrace.h

"Indan Zupancic" <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
On Sat, March 13, 2010 07:42, Nikola Vladov wrote:
> On Sat, Mar 13, 2010 at 07:16:36AM +0100, Felix von Leitner wrote:
>> I didn't even know those existed.  Must be new :)
>> I added them, and also added pt_regs for x86_64.
>
> I even in worse situation than you, Felix :-)
> This is my first attempt to use ptrace.

If you have any questions I'll glady try to answer them, I've some
experience using ptrace.

Good luck ptracing 32 bits processes with a 64 bits tracer. =)

> I checked this manpage (I suppose it is relative new).
> http://www.kernel.org/doc/man-pages/online/pages/man2/ptrace.2.html
>
> See also this from the above link:
> BUGS
> On hosts with 2.6 kernel headers, PTRACE_SETOPTIONS is declared with a
> different value than the one for 2.4.  This leads to applications compiled
> ith such headers failing when run on 2.4 kernels.  This can be worked around
> by redefining PTRACE_SETOPTIONS to PTRACE_OLDSETOPTIONS, if that is defined.

This is because the old value was architecture specific and the new one is
cross-platform. Probably only a problem with x86.

Greetings,

Indan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.