]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Print a backtrace for core-dumping signals, even if we're not actually
authorJeremy Fitzhardinge <jeremy@valgrind.org>
Tue, 16 Mar 2004 08:20:14 +0000 (08:20 +0000)
committerJeremy Fitzhardinge <jeremy@valgrind.org>
Tue, 16 Mar 2004 08:20:14 +0000 (08:20 +0000)
dumping core.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2322

coregrind/vg_signals.c

index be6e45fe93ea01e2c92c7756345ac47569ccce29..ca8aa5e6c17a33df71fdf2194dfe88b66a8783f5 100644 (file)
@@ -1717,6 +1717,7 @@ static void vg_default_action(const vki_ksiginfo_t *info, ThreadId tid)
 
    if (terminate) {
       struct vki_rlimit corelim;
+      Bool could_core = core;
 
       if (core) {
         /* If they set the core-size limit to zero, don't generate a
@@ -1728,7 +1729,7 @@ static void vg_default_action(const vki_ksiginfo_t *info, ThreadId tid)
            core = False;
       }
 
-      if (VG_(clo_verbosity) != 0 && (core || VG_(clo_verbosity) > 1)) {
+      if (VG_(clo_verbosity) != 0 && (could_core || VG_(clo_verbosity) > 1)) {
         VG_(message)(Vg_UserMsg, "");
         VG_(message)(Vg_UserMsg, "Process terminating with default action of signal %d (%s)%s", 
                      sigNo, signame(sigNo), core ? ": dumping core" : "");