Skip to content
Snippets Groups Projects
Commit 4c525832 authored by Oz Linden's avatar Oz Linden
Browse files

remove old crash logger more

parent b6f1529b
No related branches found
No related tags found
No related merge requests found
...@@ -241,7 +241,7 @@ bool LLAppViewerMacOSX::init() ...@@ -241,7 +241,7 @@ bool LLAppViewerMacOSX::init()
{ {
bool success = LLAppViewer::init(); bool success = LLAppViewer::init();
#if LL_SEND_CRASH_REPORTS #if !defined LL_BUGSPLAT && LL_SEND_CRASH_REPORTS
if (success) if (success)
{ {
LLAppViewer* pApp = LLAppViewer::instance(); LLAppViewer* pApp = LLAppViewer::instance();
...@@ -368,6 +368,7 @@ bool LLAppViewerMacOSX::restoreErrorTrap() ...@@ -368,6 +368,7 @@ bool LLAppViewerMacOSX::restoreErrorTrap()
void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze) void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)
{ {
#ifndef LL_BUGSPLAT
std::string command_str = "mac-crash-logger.app"; std::string command_str = "mac-crash-logger.app";
std::stringstream pid_str; std::stringstream pid_str;
...@@ -379,6 +380,9 @@ void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze) ...@@ -379,6 +380,9 @@ void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)
LL_WARNS() << "about to launch mac-crash-logger" << pid_str.str() LL_WARNS() << "about to launch mac-crash-logger" << pid_str.str()
<< " " << logdir << " " << appname << LL_ENDL; << " " << logdir << " " << appname << LL_ENDL;
launchApplication(&command_str, &args); launchApplication(&command_str, &args);
#else
LL_DEBUGS("InitOSX") << "using BugSplat instead of legacy crash logger" << LL_ENDL;
#endif // ! LL_BUGSPLAT
} }
std::string LLAppViewerMacOSX::generateSerialNumber() std::string LLAppViewerMacOSX::generateSerialNumber()
...@@ -390,7 +394,8 @@ std::string LLAppViewerMacOSX::generateSerialNumber() ...@@ -390,7 +394,8 @@ std::string LLAppViewerMacOSX::generateSerialNumber()
CFStringRef serialNumber = NULL; CFStringRef serialNumber = NULL;
io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault, io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault,
IOServiceMatching("IOPlatformExpertDevice")); IOServiceMatching("IOPlatformExpertDevice"));
if (platformExpert) { if (platformExpert)
{
serialNumber = (CFStringRef) IORegistryEntryCreateCFProperty(platformExpert, serialNumber = (CFStringRef) IORegistryEntryCreateCFProperty(platformExpert,
CFSTR(kIOPlatformSerialNumberKey), CFSTR(kIOPlatformSerialNumberKey),
kCFAllocatorDefault, 0); kCFAllocatorDefault, 0);
......
...@@ -174,7 +174,7 @@ static void exceptionTerminateHandler() ...@@ -174,7 +174,7 @@ static void exceptionTerminateHandler()
long *null_ptr; long *null_ptr;
null_ptr = 0; null_ptr = 0;
*null_ptr = 0xDEADBEEF; //Force an exception that will trigger breakpad. *null_ptr = 0xDEADBEEF; //Force an exception that will trigger breakpad.
//LLAppViewer::handleViewerCrash();
// we've probably been killed-off before now, but... // we've probably been killed-off before now, but...
gOldTerminateHandler(); // call old terminate() handler gOldTerminateHandler(); // call old terminate() handler
} }
...@@ -362,10 +362,6 @@ int APIENTRY WINMAIN(HINSTANCE hInstance, ...@@ -362,10 +362,6 @@ int APIENTRY WINMAIN(HINSTANCE hInstance,
viewer_app_ptr->setErrorHandler(LLAppViewer::handleViewerCrash); viewer_app_ptr->setErrorHandler(LLAppViewer::handleViewerCrash);
#if LL_SEND_CRASH_REPORTS
// ::SetUnhandledExceptionFilter(catchallCrashHandler);
#endif
// Set a debug info flag to indicate if multiple instances are running. // Set a debug info flag to indicate if multiple instances are running.
bool found_other_instance = !create_app_mutex(); bool found_other_instance = !create_app_mutex();
gDebugInfo["FoundOtherInstanceAtStartup"] = LLSD::Boolean(found_other_instance); gDebugInfo["FoundOtherInstanceAtStartup"] = LLSD::Boolean(found_other_instance);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment