Dmitry V. Levin 2f948b9231 Set PTRACE_O_TRACEEXIT option and handle PTRACE_EVENT_EXIT events
Do not assume that some syscalls do not generate syscall-exit-stops.
When syscalls fail for any reason they may generate syscall-exit-stops.

The solution is to wait for an actual exit reported by PTRACE_EVENT_EXIT
and print the end of unfinished exiting syscall properly.

* exit.c: Remove.
* Makefile.am (strace_SOURCES): Remove exit.c.
* linux/dummy.h (sys_exit): Alias to printargs_d.
* strace.c (ptrace_setoptions): Add PTRACE_O_TRACEEXIT bit.
(print_event_exit): New function.
(trace): Use it in case of PTRACE_EVENT_EXIT.
* syscall.c (trace_syscall_entering): Remove special handling
of SEN_exit.
2016-11-27 14:22:58 +00:00
2016-10-05 06:19:41 +00:00
2016-09-08 22:56:25 +00:00
2015-07-20 22:03:07 +00:00
2009-07-08 21:01:21 +00:00
2015-07-20 22:03:07 +00:00
2013-05-17 23:18:55 +00:00
2015-11-25 19:10:56 +00:00
2016-11-26 19:47:38 +00:00
2016-01-08 18:53:27 +00:00
2015-08-28 08:46:23 +00:00
2016-08-15 21:08:56 +00:00
2016-11-13 11:04:49 +00:00
2015-07-20 22:03:07 +00:00
2015-07-20 22:03:07 +00:00
2016-05-30 00:29:14 +00:00
2012-02-25 15:29:21 +01:00
2015-11-22 23:10:12 +00:00
2015-11-22 23:10:12 +00:00
2016-07-22 19:28:06 +00:00
2016-05-29 22:58:56 +00:00
2016-07-18 22:12:45 +00:00
2015-09-16 00:14:55 +00:00
2016-11-16 17:26:58 +00:00
2016-10-29 02:54:02 +03:00
2016-10-31 00:49:28 +03:00
2016-05-25 16:36:37 +00:00
2016-06-21 16:56:21 +00:00
2016-11-20 22:39:29 +00:00
2016-10-05 06:19:41 +00:00
2016-04-07 01:15:58 +00:00
2016-09-08 22:56:25 +00:00
2016-09-08 22:56:25 +00:00
2016-06-18 22:53:25 +00:00
2016-05-07 23:37:53 +00:00
2015-12-07 00:38:38 +00:00
2016-07-26 16:14:50 +00:00
2016-11-11 17:53:44 +00:00
2016-11-27 14:22:58 +00:00
2015-08-28 08:46:23 +00:00

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.

Build Status Code Coverage

Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%