mirror of https://github.com/x64dbg/TitanEngine
fixed the 'push ss', 'pop ss' problem (by setting a breakpoint on the next instruction)
This commit is contained in:
parent
c541b9d764
commit
29f8973700
|
|
@ -55,6 +55,11 @@ __declspec(dllexport) void TITCALL StepInto(LPVOID StepCallBack)
|
|||
char* DisassembledString = (char*)StaticDisassembleEx(ueCurrentPosition, (LPVOID)instr);
|
||||
if(strstr(DisassembledString, "PUSHF"))
|
||||
StepOver(StepCallBack);
|
||||
else if(strstr(DisassembledString, "POP SS") || strstr(DisassembledString, "MOV SS")) //prevent the 'PUSH SS', 'POP SS' step trick
|
||||
{
|
||||
ueCurrentPosition += StaticLengthDisassemble((void*)instr);
|
||||
SetBPX(ueCurrentPosition, UE_BREAKPOINT_TYPE_INT3 + UE_SINGLESHOOT, StepCallBack);
|
||||
}
|
||||
else
|
||||
{
|
||||
ULONG_PTR ueContext = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue