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
This commit is contained in:
Friedemann Kleint
2010-08-24 15:35:46 +02:00
parent f1dea465ac
commit 54f9654bd3
12 changed files with 46 additions and 37 deletions

View File

@@ -657,7 +657,10 @@ QAbstractItemModel *DebuggerEngine::sourceFilesModel() const
QAbstractItemModel *DebuggerEngine::commandModel() const
{
return d->m_commandHandler.model();
QAbstractItemModel *model = d->m_commandHandler.model();
if (model->objectName().isEmpty()) // Make debugging easier.
model->setObjectName(objectName() + QLatin1String("CommandModel"));
return model;
}
void DebuggerEngine::fetchMemory(MemoryViewAgent *, QObject *,
@@ -1097,7 +1100,6 @@ void DebuggerEngine::notifyEngineSetupOk()
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
setState(EngineSetupOk);
QTC_ASSERT(d->m_runControl, return);
d->m_runControl->startSuccessful();
showMessage(_("QUEUE: SETUP INFERIOR"));
QTimer::singleShot(0, d, SLOT(doSetupInferior()));
}