- repaired hardware breakpoints again

This commit is contained in:
mr.exodia 2014-03-03 23:29:12 +01:00
parent ab7ea510ec
commit d4265de1e4
2 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,6 @@ void EngineInit()
bool EngineIsThereFreeHardwareBreakSlot(LPDWORD FreeRegister) bool EngineIsThereFreeHardwareBreakSlot(LPDWORD FreeRegister)
{ {
if(DebugRegister[0].DrxEnabled == false) if(DebugRegister[0].DrxEnabled == false)
{ {
if(FreeRegister != NULL) if(FreeRegister != NULL)

View File

@ -967,6 +967,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
{ {
hActiveThread = OpenThread(THREAD_GET_CONTEXT|THREAD_SET_CONTEXT|THREAD_QUERY_INFORMATION, false, DBGEvent.dwThreadId); hActiveThread = OpenThread(THREAD_GET_CONTEXT|THREAD_SET_CONTEXT|THREAD_QUERY_INFORMATION, false, DBGEvent.dwThreadId);
myDBGContext.ContextFlags = CONTEXT_DEBUG_REGISTERS; myDBGContext.ContextFlags = CONTEXT_DEBUG_REGISTERS;
GetThreadContext(hActiveThread, &myDBGContext);
if((ULONG_PTR)DBGEvent.u.Exception.ExceptionRecord.ExceptionAddress == myDBGContext.Dr0 || (myDBGContext.Dr6 & 0x1)) if((ULONG_PTR)DBGEvent.u.Exception.ExceptionRecord.ExceptionAddress == myDBGContext.Dr0 || (myDBGContext.Dr6 & 0x1))
{ {
if(DebugRegister[0].DrxEnabled) if(DebugRegister[0].DrxEnabled)