diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-05-25 16:22:11 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-05-25 16:22:11 +0200 |
commit | c4a0abcda7b11577621dbe93ae1225b586e2033e (patch) | |
tree | 568b2ab8c802f47e0f3c840939e9e83a104b4c12 /src/plugins/debugger/script/scriptengine.cpp | |
parent | 2eb2a382e52a2f7b75465cd4c9cf0bf5459d0c79 (diff) | |
download | qt-creator-c4a0abcda7b11577621dbe93ae1225b586e2033e.tar.gz |
Enabled passing on PIDs from the command line to the debugger.
Introduced struct DebuggerStartParameters to pass around
start parameters, removing the need for the engines to
access private members of DebuggerManager. Pass it
to DebuggerManager::startNewDebugger() and move
the GUI parts of that function into DebuggerPlugin,
making it possible to create the struct from command line
parameters. Introduce command line parsing with a few more
-enable-xx options. Introduce warning() to debugger panel
in the CDB engine.
On this occasion, clean out a few trailing whitespaces.
Diffstat (limited to 'src/plugins/debugger/script/scriptengine.cpp')
-rw-r--r-- | src/plugins/debugger/script/scriptengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp index c8efb92ca9..652e3e8d7b 100644 --- a/src/plugins/debugger/script/scriptengine.cpp +++ b/src/plugins/debugger/script/scriptengine.cpp @@ -224,7 +224,8 @@ bool ScriptEngine::startDebugger() m_stopped = false; m_stopOnNextLine = false; m_scriptEngine->abortEvaluation(); - QFileInfo fi(q->m_executable); + const QSharedPointer<DebuggerStartParameters> sp = q->startParameters(); + QFileInfo fi(sp->executable); m_scriptFileName = fi.absoluteFilePath(); QFile scriptFile(m_scriptFileName); if (!scriptFile.open(QIODevice::ReadOnly)) |