]> granicus.if.org Git - strace/commitdiff
2003-12-15 Dmitry V. Levin <ldv@altlinux.org>
authorRoland McGrath <roland@redhat.com>
Tue, 13 Jan 2004 09:59:45 +0000 (09:59 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 13 Jan 2004 09:59:45 +0000 (09:59 +0000)
* strace.c (trace) [WCOREDUMP]: Show coredump status of the
killed process if available.

strace.c

index fea2a13b802a139deb4776c0c3d2543d1b7b58cf..9f287f7e7d6a2623819ce5fbc925c240edb922eb 100644 (file)
--- 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