@@ -552,7 +552,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
552
552
FlushInstructionCache (dbgProcessInformation.hProcess , NULL , 0 );
553
553
DBGCode = DBG_CONTINUE;
554
554
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
555
- myDBGContext.ContextFlags = CONTEXT_CONTROL ;
555
+ myDBGContext.ContextFlags = ContextControlFlags ;
556
556
GetThreadContext (hActiveThread, &myDBGContext);
557
557
if (FoundBreakPoint.BreakPointType != UE_SINGLESHOOT)
558
558
myDBGContext.EFlags |= UE_TRAP_FLAG;
@@ -674,7 +674,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
674
674
else
675
675
{
676
676
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
677
- myDBGContext.ContextFlags = CONTEXT_CONTROL ;
677
+ myDBGContext.ContextFlags = ContextControlFlags ;
678
678
GetThreadContext (hActiveThread, &myDBGContext);
679
679
myDBGContext.EFlags |= UE_TRAP_FLAG;
680
680
SetThreadContext (hActiveThread, &myDBGContext);
@@ -727,7 +727,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
727
727
{
728
728
// handle hardware breakpoints
729
729
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
730
- myDBGContext.ContextFlags = CONTEXT_DEBUG_REGISTERS | CONTEXT_CONTROL ;
730
+ myDBGContext.ContextFlags = CONTEXT_DEBUG_REGISTERS | ContextControlFlags ;
731
731
GetThreadContext (hActiveThread, &myDBGContext);
732
732
if ((ULONG_PTR)DBGEvent.u .Exception .ExceptionRecord .ExceptionAddress == myDBGContext.Dr0 || (myDBGContext.Dr6 & 0x1 ))
733
733
{
@@ -893,7 +893,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
893
893
if (bFoundBreakPoint) // found memory breakpoint
894
894
{
895
895
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
896
- myDBGContext.ContextFlags = CONTEXT_CONTROL ;
896
+ myDBGContext.ContextFlags = ContextControlFlags ;
897
897
GetThreadContext (hActiveThread, &myDBGContext);
898
898
DBGCode = DBG_CONTINUE; // debugger handled the exception
899
899
MemoryBpxCallBack = FoundBreakPoint.ExecuteCallBack ;
@@ -1062,7 +1062,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
1062
1062
if (bFoundBreakPoint && engineMembpAlt) // found memory breakpoint
1063
1063
{
1064
1064
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
1065
- myDBGContext.ContextFlags = CONTEXT_CONTROL ;
1065
+ myDBGContext.ContextFlags = ContextControlFlags ;
1066
1066
GetThreadContext (hActiveThread, &myDBGContext);
1067
1067
DBGCode = DBG_CONTINUE; // debugger handled the exception
1068
1068
MemoryBpxCallBack = FoundBreakPoint.ExecuteCallBack ;
@@ -1239,7 +1239,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
1239
1239
FlushInstructionCache (dbgProcessInformation.hProcess , NULL , 0 );
1240
1240
DBGCode = DBG_CONTINUE;
1241
1241
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
1242
- myDBGContext.ContextFlags = CONTEXT_CONTROL ;
1242
+ myDBGContext.ContextFlags = ContextControlFlags ;
1243
1243
GetThreadContext (hActiveThread, &myDBGContext);
1244
1244
if (FoundBreakPoint.BreakPointType != UE_SINGLESHOOT)
1245
1245
myDBGContext.EFlags |= UE_TRAP_FLAG;
@@ -1400,7 +1400,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
1400
1400
{
1401
1401
CONTEXT DbgCtx;
1402
1402
1403
- DbgCtx.ContextFlags = CONTEXT_CONTROL ;
1403
+ DbgCtx.ContextFlags = ContextControlFlags ;
1404
1404
1405
1405
hActiveThread = EngineOpenThread (THREAD_GETSETSUSPEND, false , DBGEvent.dwThreadId );
1406
1406
0 commit comments