debugger: move DebuggerRunControl *m_runControl into IDebuggerEngine.

Plan is to identify make identify an IDebuggerEngine incarnation with
a RunControl.
This commit is contained in:
hjk
2010-06-14 13:17:54 +02:00
parent f3faf34db9
commit 6ed9830971
15 changed files with 58 additions and 44 deletions

View File

@@ -228,7 +228,7 @@ void ScriptEngine::exitDebugger()
setState(DebuggerNotReady);
}
void ScriptEngine::startDebugger(const DebuggerRunControl *runControl)
void ScriptEngine::startDebugger()
{
setState(AdapterStarting);
if (m_scriptEngine.isNull())
@@ -247,7 +247,8 @@ void ScriptEngine::startDebugger(const DebuggerRunControl *runControl)
setState(AdapterStarted);
setState(InferiorStarting);
m_scriptFileName = QFileInfo(runControl->sp().executable).absoluteFilePath();
QTC_ASSERT(runControl(), return);
m_scriptFileName = QFileInfo(runControl()->sp().executable).absoluteFilePath();
QFile scriptFile(m_scriptFileName);
if (!scriptFile.open(QIODevice::ReadOnly|QIODevice::Text)) {
manager()->showDebuggerOutput(LogError, QString::fromLatin1("Cannot open %1: %2").