Breakpad: added symbol extraction to the build.

Add -DRELEASE_CRASH_REPORTING:BOOL=ON to enable symbol extraction
on build time. Viewer without this set won't sent crash
reports to the crash server
This commit is contained in:
Latif Khalifa
2013-10-02 18:23:19 +02:00
parent ba1b482025
commit a27dad4db0
5 changed files with 252 additions and 11 deletions

View File

@@ -248,7 +248,7 @@ void LLCrashLogger::gatherFiles()
std::ifstream f((*itr).second.c_str());
if(!f.is_open())
{
std::cout << "Can't find file " << (*itr).second << std::endl;
llinfos << "Can't find file " << (*itr).second << llendl;
continue;
}
std::stringstream s;
@@ -349,10 +349,12 @@ void LLCrashLogger::checkCrashDump()
std::string dumpDir = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "") + "singularity-debug";
if (gDirUtilp->fileExists(dumpDir))
{
#if LL_SEND_CRASH_REPORTS
if (!mCrashHost.empty() && gSavedSettings.getS32("CrashSubmitBehavior") != 2)
{
sendCrashLog(dumpDir);
}
#endif
gDirUtilp->deleteDirAndContents(dumpDir);
}
else