[PATCH] Check for additional PTRACE options, events, etc.

Dmitry V. Levin ldv at altlinux.org
Tue Jul 19 22:33:30 UTC 2011


On Wed, Jul 20, 2011 at 08:28:59AM +1000, Steve Bennett wrote:
> On 20/07/2011, at 8:25 AM, Dmitry V. Levin wrote:
> > On Wed, Jul 20, 2011 at 07:10:30AM +1000, Steve Bennett wrote:
> >> Thanks, but it also needs some extra checks and some changes to defs.h
> > 
> > Thanks, I've added checks for additional PTRACE_* constants.
> > 
> >> See attached.
> > 
> > PTRACE_EVENT_EXIT is not 4 but 6.  I've added fallback definitions based
> > on linux/ptrace.h.
> 
> Thanks. But mine says something different :-(
> 
> /* Wait extended result codes for the above trace options.  */
> enum __ptrace_eventcodes {
>   PTRACE_EVENT_FORK     = 1,
>   PTRACE_EVENT_VFORK    = 2,
>   PTRACE_EVENT_CLONE    = 3,
>   PTRACE_EVENT_EXEC     = 4,
>   PTRACE_EVENT_VFORK_DONE = 5,
>   PTRACE_EVENT_EXIT     = 6
> };

In your 0001-Check-for-additional-PTRACE-options-events-etc.patch
PTRACE_EVENT_EXIT was defined to 4 instead of expected 6.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110720/352dcda6/attachment.bin>


More information about the Strace-devel mailing list