forked from Mirrors/openclonk
debugger: C4AulDebug: Do not call Execute on each DebugStep call
parent
788ffdd93c
commit
608f23ece6
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue