debugger: start 'runcontrol-ification' of the debugger plugin.

This replaces most uses of DebuggerStartParameters by DebuggerRunControl
which is a simple RunControl with a DebuggerStartParameters member.

Plan is to move all global state to the run controls, and possibly
introduce specialized ones for core debugging etc.
This commit is contained in:
hjk
2010-06-14 08:57:15 +02:00
parent a89643a833
commit 97edcb7977
25 changed files with 164 additions and 154 deletions

View File

@@ -201,14 +201,14 @@ void QmlEngine::exitDebugger()
manager()->notifyInferiorExited();
}
void QmlEngine::startDebugger(const DebuggerStartParametersPtr &sp)
void QmlEngine::startDebugger(const DebuggerRunControl *runControl)
{
qDebug() << "STARTING QML ENGINE";
setState(InferiorRunningRequested);
showStatusMessage(tr("Running requested..."), 5000);
const int pos = sp->remoteChannel.indexOf(QLatin1Char(':'));
const QString host = sp->remoteChannel.left(pos);
const quint16 port = sp->remoteChannel.mid(pos + 1).toInt();
const int pos = runControl->sp().remoteChannel.indexOf(QLatin1Char(':'));
const QString host = runControl->sp().remoteChannel.left(pos);
const quint16 port = runControl->sp().remoteChannel.mid(pos + 1).toInt();
//QTimer::singleShot(0, this, SLOT(runInferior()));
m_socket->connectToHost(host, port);
emit startSuccessful();