centralize exec-continue calling and error handling

This commit is contained in:
Oswald Buddenhagen
2009-10-20 14:08:59 +02:00
parent a8b39c54d7
commit b2ae433a58
5 changed files with 14 additions and 32 deletions

View File

@@ -1649,19 +1649,7 @@ void TrkGdbAdapter::handleTargetRemote(const GdbResponse &record)
void TrkGdbAdapter::startInferiorPhase2()
{
setState(InferiorRunningRequested);
m_engine->postCommand(_("-exec-continue"), GdbEngine::RunRequest, CB(handleFirstContinue));
}
void TrkGdbAdapter::handleFirstContinue(const GdbResponse &record)
{
QTC_ASSERT(state() == InferiorRunning, qDebug() << state());
if (record.resultClass == GdbResultDone) {
debugMessage(_("INFERIOR STARTED"));
showStatusMessage(msgInferiorRunning());
} else {
emit inferiorStartFailed(msgConnectRemoteServerFailed(record.toString()));
}
m_engine->continueInferiorInternal();
}
//