make debug_crash private

This commit is contained in:
Glenn Maynard
2005-12-31 04:02:51 +00:00
parent 4d97933c43
commit 0e599ca582
2 changed files with 3 additions and 5 deletions
+3 -2
View File
@@ -949,14 +949,15 @@ BOOL APIENTRY CrashDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
return FALSE;
}
void NORETURN CrashHandler::debug_crash()
/* Trigger the crash handler. This works even in the debugger. */
static void NORETURN debug_crash()
{
__try {
__asm xor ebx,ebx
__asm mov eax,dword ptr [ebx]
// __asm mov dword ptr [ebx],eax
// __asm lock add dword ptr cs:[00000000h], 12345678h
} __except(ExceptionHandler((EXCEPTION_POINTERS*)_exception_info())) {
} __except( CrashHandler::ExceptionHandler((EXCEPTION_POINTERS*)_exception_info()) ) {
}
}
-3
View File
@@ -7,9 +7,6 @@ namespace CrashHandler
{
extern long __stdcall ExceptionHandler(struct _EXCEPTION_POINTERS *ExceptionInfo);
/* Trigger the crash handler. This works even in the debugger. */
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 ForceCrash( const char *reason );