summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2019-12-13 12:20:50 -0500
committerOz Linden <oz@lindenlab.com>2019-12-13 12:20:50 -0500
commit675842a2d4680e5e3bbbfba3db6fc183362083ea (patch)
tree5d66f2206b5130af8ce28ad5cde0c5170d5b9447 /indra/newview
parent1082a886ce8ffe4a23943b8513356a509373f03c (diff)
clarify crash logger at startup
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llappviewermacosx.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/indra/newview/llappviewermacosx.cpp b/indra/newview/llappviewermacosx.cpp
index 999a475f8b..5a0fe6ba0c 100644
--- a/indra/newview/llappviewermacosx.cpp
+++ b/indra/newview/llappviewermacosx.cpp
@@ -81,7 +81,8 @@ static void exceptionTerminateHandler()
long *null_ptr;
null_ptr = 0;
*null_ptr = 0xDEADBEEF; //Force an exception that will trigger breakpad.
- //LLAppViewer::handleViewerCrash();
+ LLAppViewer::handleViewerCrash();
+
// we've probably been killed-off before now, but...
gOldTerminateHandler(); // call old terminate() handler
}
@@ -99,7 +100,7 @@ void constructViewer()
gViewerAppPtr = new LLAppViewerMacOSX();
// install unexpected exception handler
- gOldTerminateHandler = std::set_terminate(exceptionTerminateHandler);
+ //gOldTerminateHandler = std::set_terminate(exceptionTerminateHandler);
gViewerAppPtr->setErrorHandler(LLAppViewer::handleViewerCrash);
}
@@ -241,14 +242,11 @@ bool LLAppViewerMacOSX::init()
{
bool success = LLAppViewer::init();
-#if !defined LL_BUGSPLAT && LL_SEND_CRASH_REPORTS
if (success)
{
LLAppViewer* pApp = LLAppViewer::instance();
pApp->initCrashReporting();
}
-#endif
-
return success;
}
@@ -369,7 +367,10 @@ bool LLAppViewerMacOSX::restoreErrorTrap()
void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)
{
-#ifndef LL_BUGSPLAT
+#if defined LL_BUGSPLAT
+ LL_DEBUGS("InitOSX", "Bugsplat") << "using BugSplat crash logger" << LL_ENDL;
+#elif LL_SEND_CRASH_REPORTS
+ LL_DEBUGS("InitOSX") << "Initializing legacy crash logger" << LL_ENDL;
std::string command_str = "mac-crash-logger.app";
std::stringstream pid_str;
@@ -382,7 +383,7 @@ void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)
<< " " << logdir << " " << appname << LL_ENDL;
launchApplication(&command_str, &args);
#else
- LL_DEBUGS("InitOSX") << "using BugSplat instead of legacy crash logger" << LL_ENDL;
+ LL_DEBUGS("InitOSX") << "No crash logger enabled" << LL_ENDL;
#endif // ! LL_BUGSPLAT
}