From 608f23ece65fe4635debbc83536d217584b0a65b Mon Sep 17 00:00:00 2001 From: Martin Plicht Date: Wed, 16 Oct 2013 13:43:02 +0200 Subject: [PATCH] debugger: C4AulDebug: Do not call Execute on each DebugStep call --- src/script/C4AulDebug.cpp | 12 +++--------- src/script/C4AulDebug.h | 2 -- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/script/C4AulDebug.cpp b/src/script/C4AulDebug.cpp index f9d6e537c..161cd370a 100644 --- a/src/script/C4AulDebug.cpp +++ b/src/script/C4AulDebug.cpp @@ -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; diff --git a/src/script/C4AulDebug.h b/src/script/C4AulDebug.h index c04f3902d..995dd5b6b 100644 --- a/src/script/C4AulDebug.h +++ b/src/script/C4AulDebug.h @@ -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);