summaryrefslogtreecommitdiff
path: root/test/childthread.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2009-02-24 15:17:53 +0000
committerDenys Vlasenko <dvlasenk@redhat.com>2009-02-24 15:17:53 +0000
commit4dedd561d61562fe66f1a0b673ad33ac6a1e3c71 (patch)
tree0afb09e1f7d7bf5c614ea304f30aa42aace75f86 /test/childthread.c
parentc7e837154dae4db1cdf78e6251eb103cde2e3465 (diff)
downloadstrace-4dedd561d61562fe66f1a0b673ad33ac6a1e3c71.tar.gz
strace-4dedd561d61562fe66f1a0b673ad33ac6a1e3c71.tar.bz2
strace-4dedd561d61562fe66f1a0b673ad33ac6a1e3c71.tar.xz
Replace many more bare ptrace calls with calls to wrappers
which do proper error-checking and set tcp->ptrace_errno. In some cases, missing error checking is added. Error handling for trace_syscall() failures and other cases where tcp->ptrace_errno is nonzero is cleaned up a bit and made more verbose if we see error other than ESRC. Some comments are added or expanded. * defs.h: Declare ptrace_cmds[]. Modify do_ptrace declaration (last parameter is long, not void *). * process.c: Make ptrace_cmds[] non-static. (change_syscall): Use do_ptrace() instead of bare ptrace(). * signal.c: Use do_ptrace() instead of bare ptrace(). * strace.c: Update trace_syscall() failure handling. * syscall.c: Use do_ptrace() instead of bare ptrace(). * util.c: Use do_ptrace() instead of bare ptrace(). Update do_ptrace() wrapper. (str_PTRACE_xxx): New function - helper returning "PTRACE_xxx". (do_ptrace_peekdata): New function - wrapper for PTRACE_PEEKDATA (do_ptrace5): New function - wrapper for 5-argument ptrace calls.
Diffstat (limited to 'test/childthread.c')
0 files changed, 0 insertions, 0 deletions