debugger: C4AulDebug: Do not call Execute on each DebugStep call

stable-5.4
Martin Plicht 2013-10-16 13:43:02 +02:00
parent 788ffdd93c
commit 608f23ece6
2 changed files with 3 additions and 11 deletions

View File

@ -368,15 +368,6 @@ void C4AulDebug::DebugStep(C4AulBCC *pCPos, C4Value* stackTop)
if (pCPos->Par.i)
eState = DS_Step;
StepPoint(pCPos, stackTop);
}
void C4AulDebug::StepPoint(C4AulBCC *pCPos, C4Value *stackTop)
{
// Maybe got a command in the meantime?
Execute(0);
int iCallDepth = pExec->GetContextDepth();
// Stop?
switch (eState)
@ -411,6 +402,9 @@ void C4AulDebug::StepPoint(C4AulBCC *pCPos, C4Value *stackTop)
eState = DS_Go;
return;
}
// Maybe got a command in the meantime?
Execute(0);
// Let's stop here
eState = DS_Stop;

View File

@ -94,8 +94,6 @@ private:
: okay(okay), answer(answer) {}
};
void StepPoint(C4AulBCC *pCPos, C4Value *stackTop = NULL);
StdStrBuf FormatCodePos(C4AulScriptContext *pCtx, C4AulBCC *pCPos);
ProcessLineResult ProcessLine(const StdStrBuf &Line);