fixed the attach breakpoint callback location

This commit is contained in:
mrexodia 2017-05-23 19:24:18 +02:00
parent 75f968fdf0
commit 7518be864e
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 1 additions and 4 deletions

View File

@ -32,10 +32,6 @@ namespace GleeBug
mProcess->permanentDep = true; mProcess->permanentDep = true;
#endif //_WIN64 #endif //_WIN64
//call the attach callback if appropriate
if(mAttachedToProcess && mProcess->dwProcessId == mMainProcess.dwProcessId)
cbAttachBreakpoint();
//call the callback //call the callback
cbSystemBreakpoint(); cbSystemBreakpoint();
} }

View File

@ -11,6 +11,7 @@ namespace GleeBug
mMainProcess.hThread = createProcess.hThread; mMainProcess.hThread = createProcess.hThread;
mMainProcess.dwProcessId = mDebugEvent.dwProcessId; mMainProcess.dwProcessId = mDebugEvent.dwProcessId;
mMainProcess.dwThreadId = mDebugEvent.dwThreadId; mMainProcess.dwThreadId = mDebugEvent.dwThreadId;
cbAttachBreakpoint();
} }
//process housekeeping //process housekeeping