debugger: move DebuggerRunControl *m_runControl into IDebuggerEngine.

Plan is to identify make identify an IDebuggerEngine incarnation with
a RunControl.
This commit is contained in:
hjk
2010-06-14 13:17:54 +02:00
parent f3faf34db9
commit 6ed9830971
15 changed files with 58 additions and 44 deletions

View File

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