mirror of https://github.com/x64dbg/TitanEngine
Merge pull request #32 from colinsenner/fix-skip-int3
fixes an issue where you cannot step over int3 instructions even with…
This commit is contained in:
commit
7acc78afd1
|
|
@ -662,7 +662,10 @@ __declspec(dllexport) void TITCALL DebugLoop()
|
||||||
{
|
{
|
||||||
ULONG_PTR exceptionAddress = (ULONG_PTR)DBGEvent.u.Exception.ExceptionRecord.ExceptionAddress;
|
ULONG_PTR exceptionAddress = (ULONG_PTR)DBGEvent.u.Exception.ExceptionRecord.ExceptionAddress;
|
||||||
|
|
||||||
if(recentlyDeletedBpx.find(exceptionAddress) != recentlyDeletedBpx.end())
|
unsigned char currentByte = 0xCC;
|
||||||
|
MemoryReadSafe(dbgProcessInformation.hProcess, (void*)exceptionAddress, ¤tByte, 1, nullptr);
|
||||||
|
|
||||||
|
if(currentByte != 0xCC && recentlyDeletedBpx.find(exceptionAddress) != recentlyDeletedBpx.end())
|
||||||
{
|
{
|
||||||
//breakpoint was recently deleted - handle the stale event gracefully
|
//breakpoint was recently deleted - handle the stale event gracefully
|
||||||
hActiveThread = EngineOpenThread(THREAD_GETSETSUSPEND, false, DBGEvent.dwThreadId);
|
hActiveThread = EngineOpenThread(THREAD_GETSETSUSPEND, false, DBGEvent.dwThreadId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue