From: Roland McGrath Date: Tue, 13 Jan 2004 09:59:45 +0000 (+0000) Subject: 2003-12-15 Dmitry V. Levin X-Git-Tag: v4.5.18~661 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2efe879fa8df30bf69c3a4c471dcc5e19ad0b6ea;p=strace 2003-12-15 Dmitry V. Levin * strace.c (trace) [WCOREDUMP]: Show coredump status of the killed process if available. --- diff --git a/strace.c b/strace.c index fea2a13b..9f287f7e 100644 --- a/strace.c +++ b/strace.c @@ -2022,8 +2022,12 @@ Process %d attached (waiting for parent)\n", if (!cflag && (qual_flags[WTERMSIG(status)] & QUAL_SIGNAL)) { printleader(tcp); - tprintf("+++ killed by %s +++", - signame(WTERMSIG(status))); + tprintf("+++ killed by %s %s+++", + signame(WTERMSIG(status)), +#ifdef WCOREDUMP + WCOREDUMP(status) ? "(core dumped) " : +#endif + ""); printtrailer(tcp); } #ifdef TCB_GROUP_EXITING