diff options
author | Friedemann Kleint <[email protected]> | 2010-08-24 15:35:46 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2010-08-24 15:35:46 +0200 |
commit | 54f9654bd3371dcb54abfffe1fad8971a1f6604e (patch) | |
tree | 67ddb5d52677d7f0140720997c78d9c2894400bb /src/plugins/debugger/debuggerrunner.cpp | |
parent | f1dea465ac413ff0f928b3fee28f8521dad42d63 (diff) |
Debugger: Fix Symbian.
...which subclasses DebuggerRunner and does not call
DebuggerPlugin::startDebugger(), which connects the
engine, leading to strange malfunctions. Move functionality
to DebuggerRunner::start() to make it self-contained.
Add object names to engines for easier debugging.
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 663d08ee965..7452fa91e21 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -189,7 +189,6 @@ DebuggerRunControl *DebuggerRunControlFactory::create( delete runControl; return 0; } - connect(runControl, SIGNAL(started()), runControl, SLOT(handleStarted())); connect(runControl, SIGNAL(finished()), runControl, SLOT(handleFinished())); return runControl; } @@ -460,7 +459,6 @@ void DebuggerRunControl::start() QString errorMessage; QString settingsCategory; QString settingsPage; - QString settingsIdHint; if (!checkDebugConfiguration(sp.toolChainType, &errorMessage, &settingsCategory, &settingsPage)) { @@ -471,17 +469,16 @@ void DebuggerRunControl::start() return; } - plugin()->activateDebugMode(); - plugin()->showMessage(tr("Starting debugger for tool chain '%1'...") - .arg(toolChainName(sp.toolChainType)), StatusBar); + plugin()->activateDebugMode(); + + const QString message = tr("Starting debugger '%1' for tool chain '%2'..."). + arg(m_engine->objectName(), toolChainName(sp.toolChainType)); + plugin()->showMessage(message, StatusBar); plugin()->showMessage(DebuggerSettings::instance()->dump(), LogDebug); engine()->startDebugger(this); -} - -void DebuggerRunControl::startSuccessful() -{ m_running = true; + plugin()->runControlStarted(this); emit started(); } @@ -492,11 +489,6 @@ void DebuggerRunControl::startFailed() engine()->handleStartFailed(); } -void DebuggerRunControl::handleStarted() -{ - plugin()->runControlStarted(this); -} - void DebuggerRunControl::handleFinished() { engine()->handleFinished(); |