diff options
author | Juan Cespedes <cespedes@debian.org> | 2009-05-21 15:15:40 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2009-05-21 15:15:40 +0200 |
commit | 2721e6adbc7399e1b621b896b4f5b864082fbf03 (patch) | |
tree | c934ca4377082f2171705f450078bafbf10b4ee6 /ltrace.h | |
parent | 85f7d7616f2736de79f6b7f77bceedbc97c83406 (diff) | |
download | ltrace-2721e6adbc7399e1b621b896b4f5b864082fbf03.tar.gz |
new fork() and clone() approach
used PTRACE_O_TRACE{FORK,VFORK,CLONE} to trace newly created
processes instead of figuring it out whether a given syscall
would create another process or not
Diffstat (limited to 'ltrace.h')
-rw-r--r-- | ltrace.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -161,7 +161,7 @@ enum Process_State { typedef struct Process Process; struct Process { Process_State state; - Process *parent; /* needed by STATE_FUTURE_{FORK,CLONE} */ + Process *parent; /* needed by STATE_BEING_CREATED */ char *filename; pid_t pid; struct dict *breakpoints; @@ -259,7 +259,6 @@ extern void *get_stack_pointer(Process *proc); extern void *get_return_addr(Process *proc, void *stack_pointer); extern void enable_breakpoint(pid_t pid, Breakpoint *sbp); extern void disable_breakpoint(pid_t pid, const Breakpoint *sbp); -extern int fork_p(Process *proc, int sysnum); extern int exec_p(Process *proc, int sysnum); extern int was_exec(Process *proc, int status); extern int syscall_p(Process *proc, int status, int *sysnum); |