update
This commit is contained in:
@@ -182,12 +182,12 @@ static void parent_process( int to_child, const CrashData *crash )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 5. Write CHECKPOINTs. */
|
/* 5. Write CHECKPOINTs. */
|
||||||
p = Checkpoints::GetLogs("\n");
|
static char buf[1024*32];
|
||||||
size = strlen(p)+1;
|
Checkpoints::GetLogs( buf, sizeof(buf), "\n" );
|
||||||
|
size = strlen(buf)+1;
|
||||||
if( !parent_write(to_child, &size, sizeof(size)) )
|
if( !parent_write(to_child, &size, sizeof(size)) )
|
||||||
return;
|
return;
|
||||||
|
if( !parent_write(to_child, buf, size) )
|
||||||
if( !parent_write(to_child, p, size) )
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* 6. Write the crashed thread's name. */
|
/* 6. Write the crashed thread's name. */
|
||||||
|
|||||||
@@ -795,7 +795,9 @@ static void DoSave()
|
|||||||
Report(NULL, hFile, "");
|
Report(NULL, hFile, "");
|
||||||
|
|
||||||
// Dump thread stacks
|
// 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, "");
|
Report(NULL, hFile, "");
|
||||||
|
|
||||||
ReportCallStack( NULL, hFile, g_CrashInfo.m_BacktracePointers );
|
ReportCallStack( NULL, hFile, g_CrashInfo.m_BacktracePointers );
|
||||||
|
|||||||
Reference in New Issue
Block a user