diff options
Diffstat (limited to 'indra/newview')
| -rwxr-xr-x | indra/newview/CMakeLists.txt | 5 | ||||
| -rwxr-xr-x | indra/newview/llappviewer.cpp | 18 | ||||
| -rwxr-xr-x | indra/newview/llappviewermacosx.cpp | 5 | ||||
| -rwxr-xr-x | indra/newview/llmaniprotate.cpp | 3 | 
4 files changed, 17 insertions, 14 deletions
| diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index bb745bcb43..b6cb96b11e 100755 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -2170,7 +2170,10 @@ if (PACKAGE)          VERBATIM)    add_custom_target(generate_breakpad_symbols DEPENDS "${VIEWER_SYMBOL_FILE}") -  add_dependencies(generate_breakpad_symbols "${VIEWER_BINARY_NAME}" "${VIEWER_COPY_MANIFEST}") +  add_dependencies(generate_breakpad_symbols "${VIEWER_BINARY_NAME}") +  if (WINDOWS OR LINUX) +    add_dependencies(generate_breakpad_symbols "${VIEWER_COPY_MANIFEST}") +  endif (WINDOWS OR LINUX)    add_dependencies(llpackage generate_breakpad_symbols)    endif(RELEASE_CRASH_REPORTING OR NON_RELEASE_CRASH_REPORTING)  endif (PACKAGE) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 212627c0f7..45306dcff4 100755 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3615,9 +3615,9 @@ void getFileList()  void LLAppViewer::handleViewerCrash()  { -	LL_INFOS() << "Handle viewer crash entry." << LL_ENDL; +	LL_INFOS("CRASHREPORT") << "Handle viewer crash entry." << LL_ENDL; -	LL_INFOS() << "Last render pool type: " << LLPipeline::sCurRenderPoolType << LL_ENDL ; +	LL_INFOS("CRASHREPORT") << "Last render pool type: " << LLPipeline::sCurRenderPoolType << LL_ENDL ;  	LLMemory::logMemoryInfo(true) ; @@ -3725,30 +3725,36 @@ void LLAppViewer::handleViewerCrash()  #endif   	char *minidump_file = pApp->getMiniDumpFilename(); - +    LL_DEBUGS("CRASHREPORT") << "minidump file name " << minidump_file << LL_ENDL;  	if(minidump_file && minidump_file[0] != 0)  	{  		gDebugInfo["Dynamic"]["MinidumpPath"] = minidump_file;  	} -#ifdef LL_WINDOWS  	else  	{ +#ifdef LL_WINDOWS  		getFileList(); +#else +        LL_WARNS("CRASHREPORT") << "no minidump file?" << LL_ENDL; +#endif          	} -#endif      gDebugInfo["Dynamic"]["CrashType"]="crash";  	if (gMessageSystem && gDirUtilp)  	{  		std::string filename;  		filename = gDirUtilp->getExpandedFilename(LL_PATH_DUMP, "stats.log"); +        LL_DEBUGS("CRASHREPORT") << "recording stats " << filename << LL_ENDL;  		llofstream file(filename.c_str(), std::ios_base::binary);  		if(file.good())  		{ -			LL_INFOS() << "Handle viewer crash generating stats log." << LL_ENDL;  			gMessageSystem->summarizeLogs(file);  			file.close();  		} +        else +        { +            LL_WARNS("CRASHREPORT") << "problem recording stats" << LL_ENDL; +        }          	}  	if (gMessageSystem) diff --git a/indra/newview/llappviewermacosx.cpp b/indra/newview/llappviewermacosx.cpp index 09227806fd..ca219fda59 100755 --- a/indra/newview/llappviewermacosx.cpp +++ b/indra/newview/llappviewermacosx.cpp @@ -83,10 +83,6 @@ static void exceptionTerminateHandler()  bool initViewer()  { -#if LL_SOLARIS && defined(__sparc) -	asm ("ta\t6");		 // NOTE:  Make sure memory alignment is enforced on SPARC -#endif -  	// Set the working dir to <bundle>/Contents/Resources  	if (chdir(gDirUtilp->getAppRODataDir().c_str()) == -1)  	{ @@ -301,6 +297,7 @@ void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)      std::string appname = gDirUtilp->getExecutableFilename();      std::string str[] = { "-pid", pid_str.str(), "-dumpdir", logdir, "-procname", appname.c_str() };      std::vector< std::string > args( str, str + ( sizeof ( str ) /  sizeof ( std::string ) ) ); +    LL_WARNS() << "about to launch mac-crash-logger" << pid_str << " " << logdir << " " << appname << LL_ENDL;      launchApplication(&command_str, &args);  } diff --git a/indra/newview/llmaniprotate.cpp b/indra/newview/llmaniprotate.cpp index ed40483029..3a0f96cd37 100755 --- a/indra/newview/llmaniprotate.cpp +++ b/indra/newview/llmaniprotate.cpp @@ -67,9 +67,6 @@ const F32 RADIUS_PIXELS = 100.f;		// size in screen space  const F32 SQ_RADIUS = RADIUS_PIXELS * RADIUS_PIXELS;  const F32 WIDTH_PIXELS = 8;  const S32 CIRCLE_STEPS = 100; -const F32 DELTA = F_TWO_PI / CIRCLE_STEPS; -const F32 SIN_DELTA = sin( DELTA ); -const F32 COS_DELTA = cos( DELTA );  const F32 MAX_MANIP_SELECT_DISTANCE = 100.f;  const F32 SNAP_ANGLE_INCREMENT = 5.625f;  const F32 SNAP_ANGLE_DETENTE = SNAP_ANGLE_INCREMENT; | 
