Przeglądaj źródła

handle c++ exceptions in debugger

Nicolas Cannasse 7 lat temu
rodzic
commit
524ad52996
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      src/std/debug.c

+ 3 - 0
src/std/debug.c

@@ -120,6 +120,9 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) {
 		case 0x406D1388: // MS_VC_EXCEPTION (see SetThreadName)
 			ContinueDebugEvent(e.dwProcessId, e.dwThreadId, DBG_CONTINUE);
 			break;
+		case 0xE06D7363: // C++ EH EXCEPTION
+			ContinueDebugEvent(e.dwProcessId, e.dwThreadId, DBG_EXCEPTION_NOT_HANDLED);
+			break;
 		default:
 			return 3;
 		}