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()) { 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(); LL_INFOS() << "Crash reporter finished normally." << LL_ENDL; return 0; }
int main(int argc, char **argv) { llinfos << "Starting crash reporter." << llendl; LLCrashLoggerMac app; app.parseCommandOptions(argc, argv); if (! app.init()) { llwarns << "Unable to initialize application." << llendl; return 1; } app.mainLoop(); app.cleanup(); llinfos << "Crash reporter finished normally." << llendl; return 0; }