diff options
author | Merov Linden <merov@lindenlab.com> | 2014-04-07 16:31:32 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-04-07 16:31:32 -0700 |
commit | c9a9ab1b6a23525229e39c42440e302feef0288e (patch) | |
tree | 687e5690f9f6ea91577f0075aaffcddedbdd5022 /indra/linux_crash_logger/linux_crash_logger.cpp | |
parent | 78eada5b6c3a8d20a2ea49887ab7c091e4b6fa14 (diff) | |
parent | 7e966f28da79d2d24f93a2615c8807421300700c (diff) |
Pull merge from lindenlab/viewer-release
Diffstat (limited to 'indra/linux_crash_logger/linux_crash_logger.cpp')
-rwxr-xr-x | indra/linux_crash_logger/linux_crash_logger.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/linux_crash_logger/linux_crash_logger.cpp b/indra/linux_crash_logger/linux_crash_logger.cpp index 99d0ad7e14..d4e7ad7be3 100755 --- a/indra/linux_crash_logger/linux_crash_logger.cpp +++ b/indra/linux_crash_logger/linux_crash_logger.cpp @@ -26,6 +26,7 @@ #include "linden_common.h" #include "llcrashloggerlinux.h" +#include "llsdutil.h" int main(int argc, char **argv) { @@ -34,6 +35,16 @@ int main(int argc, char **argv) LLCrashLoggerLinux app; app.parseCommandOptions(argc, argv); + LLSD options = LLApp::instance()->getOptionData( + LLApp::PRIORITY_COMMAND_LINE); + //LLApp::PRIORITY_RUNTIME_OVERRIDE); + + + if (!(options.has("pid") && options.has("dumpdir"))) + { + llwarns << "Insufficient parameters to crash report." << llendl; + } + if (! app.init()) { llwarns << "Unable to initialize application." << llendl; |