mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: log backtrace when no KCrash flags are set
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6784f51d58
commit
bdff3fa4e7
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "kcrash.h"
|
||||
#include "kcmdlineargs.h"
|
||||
#include "kde_file.h"
|
||||
|
@ -166,7 +167,12 @@ void KCrash::defaultCrashHandler(int sig)
|
|||
|
||||
::system(systemargs.constData());
|
||||
} else {
|
||||
kError() << QCoreApplication::applicationName() << "crashed (" << QCoreApplication::applicationPid() << ")";
|
||||
// NOTE: if HAVE_BACKTRACE is not defined kBacktrace() will return empty string
|
||||
#ifdef HAVE_BACKTRACE
|
||||
kError() << QCoreApplication::applicationName() << "crashed:\n" << kBacktrace();
|
||||
#else
|
||||
kError() << QCoreApplication::applicationName() << "crashed";
|
||||
#endif
|
||||
}
|
||||
|
||||
::exit(sig);
|
||||
|
|
Loading…
Add table
Reference in a new issue