diff options
| author | Vadim ProductEngine <vsavchuk@productengine.com> | 2010-11-02 20:26:38 +0200 | 
|---|---|---|
| committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2010-11-02 20:26:38 +0200 | 
| commit | 5d7417b40ed8717b3f307ed9e53c249a3a26cf1b (patch) | |
| tree | ea56134531a2147b12bb52a257841202604b8659 /indra/newview | |
| parent | 37b97d2f6dbb1b9031202aba982a116e0f8fa2bf (diff) | |
STORM-422 FIXED Added command line option "-disablecrashlogger" to disable crash logger.
This is a patch originally written by Robin Cornelius.
I made it work with Google Breakpad.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/app_settings/cmd_line.xml | 8 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 14 | 
2 files changed, 22 insertions, 0 deletions
| diff --git a/indra/newview/app_settings/cmd_line.xml b/indra/newview/app_settings/cmd_line.xml index 00d69f805e..ba3b6a42a4 100644 --- a/indra/newview/app_settings/cmd_line.xml +++ b/indra/newview/app_settings/cmd_line.xml @@ -391,5 +391,13 @@        <string>CrashOnStartup</string>      </map> +    <key>disablecrashlogger</key> +    <map> +      <key>desc</key> +      <string>Disables the crash logger and lets the OS handle crashes</string> +      <key>map-to</key> +      <string>DisableCrashLogger</string> +    </map> +    </map>  </llsd> 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) | 
