[PATCH] Check for additional PTRACE options, events, etc.
Steve Bennett
steveb at workware.net.au
Tue Jul 19 22:28:59 UTC 2011
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
};
>
>
> --
> ldv
--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au P: +61 434 921 300
E: steveb at workware.net.au F: +61 7 3391 6002
More information about the Strace-devel
mailing list