diff options
author | Oz Linden <oz@lindenlab.com> | 2010-11-04 11:53:53 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2010-11-04 11:53:53 -0400 |
commit | 294fd9c1bccf927beab1a661705e743fd516e50b (patch) | |
tree | ffb020e52701420970206a90114e8dd132fff7a7 /indra/newview/llappviewer.cpp | |
parent | 904738c475bf325666f121b9f9db10e76ec49fcd (diff) | |
parent | e2714252f34b02ee628fb1665dfa90b932fab2f7 (diff) |
merge fix for STORM-536
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 931b9fd2f3..b17e4d77d5 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -2020,6 +2020,15 @@ bool LLAppViewer::initConfiguration() // - apply command line settings clp.notify(); + // Register the core crash option as soon as we can + // if we want gdb post-mortem on cores we need to be up and running + // ASAP or we might miss init issue etc. + if(clp.hasOption("disablecrashlogger")) + { + llwarns << "Crashes will be handled by system, stack trace logs and crash logger are both disabled" << llendl; + LLAppViewer::instance()->disableCrashlogger(); + } + // Handle initialization from settings. // Start up the debugging console before handling other options. if (gSavedSettings.getBOOL("ShowConsoleWindow")) @@ -2596,6 +2605,11 @@ void LLAppViewer::handleViewerCrash() abort(); } + if (LLApp::isCrashloggerDisabled()) + { + abort(); + } + // Returns whether a dialog was shown. // Only do the logic in here once if (pApp->mReportedCrash) |