2003-12-15 Dmitry V. Levin <ldv@altlinux.org>

* strace.c (trace) [WCOREDUMP]: Show coredump status of the
	killed process if available.
This commit is contained in:
Roland McGrath 2004-01-13 09:59:45 +00:00
parent 5b7aa6866b
commit 2efe879fa8

View File

@ -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