]> granicus.if.org Git - strace/commit
Replace reprinting decision logic
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 21 Mar 2012 10:06:20 +0000 (11:06 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 21 Mar 2012 10:06:20 +0000 (11:06 +0100)
commita44f9696e45f5bb51c6ec37c0ef95dc2cdfd4c8a
tree44fb7acbaa2b73106e26f015758a8b5df32671da
parent235067525cc064a9a466c245fa8a6265ae136306
Replace reprinting decision logic

After this change, we no longer need to decide when we need
to set TCB_REPRINT, and when we don't: it's never needed :)

Well, almost. That pesky pid-changing execve needs special treatment.
If not it, it'd be possible to nuke TCB_REPRINT...

While at it, fix a case of mishandled -C.

* strace.c (printleader): Do not set TCB_REPRINT.
(trace): Set TCB_REPRINT only for execve with changing pid.
Fix mishandling of -C.
* syscall.c (trace_syscall_entering): Do not clear TCB_REPRINT.
(trace_syscall_exiting): Replace reprinting decision logic.
Remove call to printargs(): it is known to just return 0 here.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
strace.c
syscall.c