This commit is contained in:
Glenn Maynard
2004-06-11 21:36:31 +00:00
parent 2e7eb9d37c
commit 00fb88edb8
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -937,8 +937,10 @@ void NORETURN debug_crash()
}
/* Get a stack trace of the current thread and the specified thread. */
void ForceCrashHandlerDeadlock( const char *reason, HANDLE hThread )
void ForceCrashHandlerDeadlock( CString reason, uint64_t iThreadHandle )
{
HANDLE hThread = (HANDLE) iThreadHandle;
strncpy( g_CrashInfo.m_CrashReason, reason, sizeof(g_CrashInfo.m_CrashReason) );
g_CrashInfo.m_CrashReason[ sizeof(g_CrashInfo.m_CrashReason)-1 ] = 0;
+1 -1
View File
@@ -12,7 +12,7 @@ void NORETURN debug_crash();
void do_backtrace( const void **buf, size_t size, HANDLE hProcess, HANDLE hThread, const CONTEXT *pContext );
void SymLookup( const void *ptr, char *buf );
void ForceCrashHandler( const char *reason );
void ForceCrashHandlerDeadlock( const char *reason, HANDLE hThread );
void ForceCrashHandlerDeadlock( CString reason, uint64_t iCrashHandle );
#endif
/*