pull out MakeCrashReport call
This commit is contained in:
@@ -452,7 +452,7 @@ static void MakeCrashReport( const CompleteCrashData &Data, RString &sOut )
|
|||||||
sOut += ssprintf( "-- End of report\n" );
|
sOut += ssprintf( "-- End of report\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DoSave( const CompleteCrashData &Data )
|
static void DoSave( const RString &sReport )
|
||||||
{
|
{
|
||||||
RString sReport;
|
RString sReport;
|
||||||
MakeCrashReport( Data, sReport );
|
MakeCrashReport( Data, sReport );
|
||||||
@@ -611,10 +611,13 @@ void ChildProcess()
|
|||||||
CompleteCrashData Data;
|
CompleteCrashData Data;
|
||||||
ReadCrashDataFromParent( fileno(stdin), Data );
|
ReadCrashDataFromParent( fileno(stdin), Data );
|
||||||
|
|
||||||
|
RString sCrashReport;
|
||||||
VDDebugInfoInitFromFile( &g_debugInfo );
|
VDDebugInfoInitFromFile( &g_debugInfo );
|
||||||
DoSave( Data );
|
MakeCrashReport( Data, sCrashReport );
|
||||||
VDDebugInfoDeinit( &g_debugInfo );
|
VDDebugInfoDeinit( &g_debugInfo );
|
||||||
|
|
||||||
|
DoSave( Data );
|
||||||
|
|
||||||
/* Tell the crashing process that it can exit. Be sure to write crashinfo.txt first. */
|
/* Tell the crashing process that it can exit. Be sure to write crashinfo.txt first. */
|
||||||
int iCmd = 0;
|
int iCmd = 0;
|
||||||
write( _fileno(stdout), &iCmd, sizeof(iCmd) );
|
write( _fileno(stdout), &iCmd, sizeof(iCmd) );
|
||||||
|
|||||||
Reference in New Issue
Block a user