update
This commit is contained in:
@@ -937,8 +937,10 @@ void NORETURN debug_crash()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get a stack trace of the current thread and the specified thread. */
|
/* 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) );
|
strncpy( g_CrashInfo.m_CrashReason, reason, sizeof(g_CrashInfo.m_CrashReason) );
|
||||||
g_CrashInfo.m_CrashReason[ sizeof(g_CrashInfo.m_CrashReason)-1 ] = 0;
|
g_CrashInfo.m_CrashReason[ sizeof(g_CrashInfo.m_CrashReason)-1 ] = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -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 do_backtrace( const void **buf, size_t size, HANDLE hProcess, HANDLE hThread, const CONTEXT *pContext );
|
||||||
void SymLookup( const void *ptr, char *buf );
|
void SymLookup( const void *ptr, char *buf );
|
||||||
void ForceCrashHandler( const char *reason );
|
void ForceCrashHandler( const char *reason );
|
||||||
void ForceCrashHandlerDeadlock( const char *reason, HANDLE hThread );
|
void ForceCrashHandlerDeadlock( CString reason, uint64_t iCrashHandle );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user