forked from qt-creator/qt-creator
fold preparing inferior into starting inferior
after refactoring the trk adapter startup, the split was not necessary any more. in fact, it seemed fairly arbitrary at this point.
This commit is contained in:
@@ -84,14 +84,6 @@ void CoreGdbAdapter::handleGdbError(QProcess::ProcessError error)
|
||||
shutdown();
|
||||
}
|
||||
|
||||
void CoreGdbAdapter::prepareInferior()
|
||||
{
|
||||
QTC_ASSERT(state() == AdapterStarted, qDebug() << state());
|
||||
setState(InferiorPreparing);
|
||||
setState(InferiorPrepared);
|
||||
emit inferiorPrepared();
|
||||
}
|
||||
|
||||
void CoreGdbAdapter::startInferior()
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
|
||||
@@ -199,7 +191,6 @@ void CoreGdbAdapter::shutdown()
|
||||
|
||||
case InferiorUnrunnable:
|
||||
case InferiorShutDown:
|
||||
case InferiorPreparationFailed:
|
||||
setState(AdapterShuttingDown);
|
||||
m_engine->postCommand(_("-gdb-exit"), CB(handleExit));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user