This commit is contained in:
Glenn Maynard
2004-10-27 19:52:51 +00:00
parent 303d0600d4
commit 48fda990cd
2 changed files with 7 additions and 5 deletions
@@ -182,12 +182,12 @@ static void parent_process( int to_child, const CrashData *crash )
}
/* 5. Write CHECKPOINTs. */
p = Checkpoints::GetLogs("\n");
size = strlen(p)+1;
static char buf[1024*32];
Checkpoints::GetLogs( buf, sizeof(buf), "\n" );
size = strlen(buf)+1;
if( !parent_write(to_child, &size, sizeof(size)) )
return;
if( !parent_write(to_child, p, size) )
if( !parent_write(to_child, buf, size) )
return;
/* 6. Write the crashed thread's name. */
+3 -1
View File
@@ -795,7 +795,9 @@ static void DoSave()
Report(NULL, hFile, "");
// Dump thread stacks
WriteBuf( hFile, Checkpoints::GetLogs("\r\n") );
static char buf[1024*32];
Checkpoints::GetLogs( buf, sizeof(buf), "\r\n" );
WriteBuf( hFile, buf );
Report(NULL, hFile, "");
ReportCallStack( NULL, hFile, g_CrashInfo.m_BacktracePointers );