From 7888b7a33651e21a0b6f48e27b7020ba8a028316 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Fri, 25 Oct 2013 19:29:29 -0500 Subject: [PATCH] Really? What kind of exception is ASSEMBLY CODE going to throw? --- src/archutils/Win32/Crash.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/archutils/Win32/Crash.cpp b/src/archutils/Win32/Crash.cpp index bc71a14339..6a63ca833e 100644 --- a/src/archutils/Win32/Crash.cpp +++ b/src/archutils/Win32/Crash.cpp @@ -536,21 +536,21 @@ void CrashHandler::do_backtrace( const void **buf, size_t size, // Trigger the crash handler. This works even in the debugger. static void NORETURN debug_crash() { - __try { +// __try { #if defined(__MSC_VER) __asm xor ebx,ebx __asm mov eax,dword ptr [ebx] // __asm mov dword ptr [ebx],eax // __asm lock add dword ptr cs:[00000000h], 12345678h #elif defined(__GNUC__) - asm("xor ebx,ebx", - "mov eax,dword ptr [ebx]", -// "mov dword ptr [ebx],eax", -// "lock add dword ptr cs:[00000000h], 12345678h", + asm("xor ebx,ebx" + "mov eax,dword ptr [ebx]" +// "mov dword ptr [ebx],eax" +// "lock add dword ptr cs:[00000000h], 12345678h" ); #endif - } __except( CrashHandler::ExceptionHandler((EXCEPTION_POINTERS*)_exception_info()) ) { - } +// } __except( CrashHandler::ExceptionHandler((EXCEPTION_POINTERS*)_exception_info()) ) { +// } } /* Get a stack trace of the current thread and the specified thread.