1
0
Fork 0

DBG: don't attempt to wait when the command failed

This commit is contained in:
mrexodia 2016-09-09 19:38:15 +02:00
parent afc498fbfe
commit ac0853ffec
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 12 additions and 12 deletions

View File

@ -7,38 +7,38 @@ SCRIPT_EXPORT void Script::Debug::Wait()
SCRIPT_EXPORT void Script::Debug::Run()
{
DbgCmdExecDirect("run");
Wait();
if(DbgCmdExecDirect("run"))
Wait();
}
SCRIPT_EXPORT void Script::Debug::Pause()
{
DbgCmdExecDirect("pause");
Wait();
if(DbgCmdExecDirect("pause"))
Wait();
}
SCRIPT_EXPORT void Script::Debug::Stop()
{
DbgCmdExecDirect("StopDebug");
Wait();
if(DbgCmdExecDirect("StopDebug"))
Wait();
}
SCRIPT_EXPORT void Script::Debug::StepIn()
{
DbgCmdExecDirect("StepInto");
Wait();
if(DbgCmdExecDirect("StepInto"))
Wait();
}
SCRIPT_EXPORT void Script::Debug::StepOver()
{
DbgCmdExecDirect("StepOver");
Wait();
if(DbgCmdExecDirect("StepOver"))
Wait();
}
SCRIPT_EXPORT void Script::Debug::StepOut()
{
DbgCmdExecDirect("StepOut");
Wait();
if(DbgCmdExecDirect("StepOut"))
Wait();
}
SCRIPT_EXPORT bool Script::Debug::SetBreakpoint(duint address)