diff options
author | Callum Prentice <callum@lindenlab.com> | 2014-04-14 10:49:18 -0700 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2014-04-14 10:49:18 -0700 |
commit | 8fd239233dca9639c6d0139e8f697da97bfe036e (patch) | |
tree | 000d3bd2eb0619a1fdf24ff080ecfe212c2ea6f8 /indra/linux_crash_logger/linux_crash_logger.cpp | |
parent | ef095034d17bfa71dbd8525fcdda8a520bd7e20f (diff) | |
parent | 7e966f28da79d2d24f93a2615c8807421300700c (diff) |
Merge with head of 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; |