From b4a11cb2dfe890120244292f4dc25942be57483d Mon Sep 17 00:00:00 2001 From: AzuLX Date: Sun, 4 Jan 2026 21:01:42 +0000 Subject: [PATCH] prevent thread suspension when HWBP is disabled during callback --- TitanEngine/TitanEngine.Debugger.DebugLoop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp index 0d2b39b..51942cb 100644 --- a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp +++ b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp @@ -724,6 +724,7 @@ __declspec(dllexport) void TITCALL DebugLoop() GetThreadContext(hActiveThread, &myDBGContext); myDBGContext.EFlags &= ~UE_TRAP_FLAG; SetThreadContext(hActiveThread, &myDBGContext); + synchronizedStep = false; } } else @@ -755,6 +756,7 @@ __declspec(dllexport) void TITCALL DebugLoop() GetThreadContext(hActiveThread, &myDBGContext); myDBGContext.EFlags &= ~UE_TRAP_FLAG; SetThreadContext(hActiveThread, &myDBGContext); + synchronizedStep = false; } } else @@ -786,6 +788,7 @@ __declspec(dllexport) void TITCALL DebugLoop() GetThreadContext(hActiveThread, &myDBGContext); myDBGContext.EFlags &= ~UE_TRAP_FLAG; SetThreadContext(hActiveThread, &myDBGContext); + synchronizedStep = false; } } else @@ -817,6 +820,7 @@ __declspec(dllexport) void TITCALL DebugLoop() GetThreadContext(hActiveThread, &myDBGContext); myDBGContext.EFlags &= ~UE_TRAP_FLAG; SetThreadContext(hActiveThread, &myDBGContext); + synchronizedStep = false; } } else