commit | c9251518b005cc5adb3cc2ba1d68856ec8e94ad2 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Mon Jul 25 17:12:42 2016 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Fri Jul 29 17:13:53 2016 +0000 |
tree | 905990a23ecbf4c2665631e4363fd74042a2119f | |
parent | 795795ae995bf7dde1d2b6dff611097a632eb1bc [diff] |
Report the name of ptrace command when ptrace_attach_or_seize fails. * strace.c (ptrace_attach_cmd): New variable. (ptrace_attach_or_seize): Save last ptrace command's name to ptrace_attach_cmd. (attach_tcb, startup_child): Use it in error diagnostics.
This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.
See the file NEWS for information on what has changed in recent versions.
Please send bug reports and enhancements to the strace mailing list.