diff options
author | hjk <qtc-committer@nokia.com> | 2010-06-14 13:17:54 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-14 17:24:13 +0200 |
commit | 6ed9830971017759e7ee96f3ca798328c653cb78 (patch) | |
tree | 299c398ad3aea79be916bc2063e3c991606a48b0 /src/plugins/debugger/script/scriptengine.cpp | |
parent | f3faf34db9d437338e5a8843e5d142ddfdefa0de (diff) | |
download | qt-creator-6ed9830971017759e7ee96f3ca798328c653cb78.tar.gz |
debugger: move DebuggerRunControl *m_runControl into IDebuggerEngine.
Plan is to identify make identify an IDebuggerEngine incarnation with
a RunControl.
Diffstat (limited to 'src/plugins/debugger/script/scriptengine.cpp')
-rw-r--r-- | src/plugins/debugger/script/scriptengine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp index 0728557125..6d2a06aa97 100644 --- a/src/plugins/debugger/script/scriptengine.cpp +++ b/src/plugins/debugger/script/scriptengine.cpp @@ -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"). |