diff options
Diffstat (limited to 'indra/mac_crash_logger')
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/CMakeLists.txt | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/CrashReporter.nib | bin | 32288 -> 32286 bytes | |||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/CrashReporter.xib | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/Info.plist | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/llcrashloggermac.cpp | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/llcrashloggermac.h | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/llcrashloggermacdelegate.h | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/llcrashloggermacdelegate.mm | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | indra/mac_crash_logger/mac_crash_logger.cpp | 15 |
9 files changed, 16 insertions, 4 deletions
diff --git a/indra/mac_crash_logger/CMakeLists.txt b/indra/mac_crash_logger/CMakeLists.txt index 3906a3bb8c..c59645bd70 100644..100755 --- a/indra/mac_crash_logger/CMakeLists.txt +++ b/indra/mac_crash_logger/CMakeLists.txt @@ -19,6 +19,10 @@ include_directories( ${LLVFS_INCLUDE_DIRS} ${LLXML_INCLUDE_DIRS} ) +include_directories(SYSTEM + ${LLCOMMON_SYSTEM_INCLUDE_DIRS} + ${LLXML_SYSTEM_INCLUDE_DIRS} + ) set(mac_crash_logger_SOURCE_FILES mac_crash_logger.cpp diff --git a/indra/mac_crash_logger/CrashReporter.nib b/indra/mac_crash_logger/CrashReporter.nib Binary files differindex a30d8d205c..e9d9e05985 100644..100755 --- a/indra/mac_crash_logger/CrashReporter.nib +++ b/indra/mac_crash_logger/CrashReporter.nib diff --git a/indra/mac_crash_logger/CrashReporter.xib b/indra/mac_crash_logger/CrashReporter.xib index f6d4776d51..f6d4776d51 100644..100755 --- a/indra/mac_crash_logger/CrashReporter.xib +++ b/indra/mac_crash_logger/CrashReporter.xib diff --git a/indra/mac_crash_logger/Info.plist b/indra/mac_crash_logger/Info.plist index 2ebed11c3f..2ebed11c3f 100644..100755 --- a/indra/mac_crash_logger/Info.plist +++ b/indra/mac_crash_logger/Info.plist diff --git a/indra/mac_crash_logger/llcrashloggermac.cpp b/indra/mac_crash_logger/llcrashloggermac.cpp index c5f660ca6e..351009814d 100644..100755 --- a/indra/mac_crash_logger/llcrashloggermac.cpp +++ b/indra/mac_crash_logger/llcrashloggermac.cpp @@ -89,5 +89,6 @@ bool LLCrashLoggerMac::mainLoop() bool LLCrashLoggerMac::cleanup() { commonCleanup(); + mKeyMaster.releaseMaster(); return true; } diff --git a/indra/mac_crash_logger/llcrashloggermac.h b/indra/mac_crash_logger/llcrashloggermac.h index 6d8f63ecac..6d8f63ecac 100644..100755 --- a/indra/mac_crash_logger/llcrashloggermac.h +++ b/indra/mac_crash_logger/llcrashloggermac.h diff --git a/indra/mac_crash_logger/llcrashloggermacdelegate.h b/indra/mac_crash_logger/llcrashloggermacdelegate.h index c998a8efe2..c998a8efe2 100644..100755 --- a/indra/mac_crash_logger/llcrashloggermacdelegate.h +++ b/indra/mac_crash_logger/llcrashloggermacdelegate.h diff --git a/indra/mac_crash_logger/llcrashloggermacdelegate.mm b/indra/mac_crash_logger/llcrashloggermacdelegate.mm index b2af76a47c..b2af76a47c 100644..100755 --- a/indra/mac_crash_logger/llcrashloggermacdelegate.mm +++ b/indra/mac_crash_logger/llcrashloggermacdelegate.mm diff --git a/indra/mac_crash_logger/mac_crash_logger.cpp b/indra/mac_crash_logger/mac_crash_logger.cpp index 6add74556f..d6b913829e 100644..100755 --- a/indra/mac_crash_logger/mac_crash_logger.cpp +++ b/indra/mac_crash_logger/mac_crash_logger.cpp @@ -27,6 +27,7 @@ #include "linden_common.h" #include "llcrashloggermac.h" #include "indra_constants.h" +#include "llpidlock.h" #include <iostream> @@ -35,21 +36,27 @@ int main(int argc, char **argv) LLCrashLoggerMac app; app.parseCommandOptions(argc, argv); + LLSD options = LLApp::instance()->getOptionData( + LLApp::PRIORITY_COMMAND_LINE); + + if (!(options.has("pid") && options.has("dumpdir"))) + { + llwarns << "Insufficient parameters to crash report." << llendl; + } + if (! app.init()) { - llwarns << "Unable to initialize application." << llendl; + LL_WARNS() << "Unable to initialize application." << LL_ENDL; return 1; } if (app.getCrashBehavior() != CRASH_BEHAVIOR_ALWAYS_SEND) { // return NSApplicationMain(argc, (const char **)argv); } - app.mainLoop(); - app.cleanup(); - llinfos << "Crash reporter finished normally." << llendl; + LL_INFOS() << "Crash reporter finished normally." << LL_ENDL; return 0; } |