fix state machine surrounding spontaneous stops

This commit is contained in:
Oswald Buddenhagen
2009-10-09 10:54:03 +02:00
parent d1783e0974
commit b27093c07d
3 changed files with 21 additions and 15 deletions

View File

@@ -213,12 +213,11 @@ void RemoteGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
void RemoteGdbAdapter::handleTargetRemote(const GdbResponse &record)
{
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
if (record.resultClass == GdbResultDone) {
QTC_ASSERT(state() == InferiorStopped, qDebug() << state());
// gdb server will stop the remote application itself.
debugMessage(_("INFERIOR STARTED"));
showStatusMessage(msgAttachedToStoppedInferior());
setState(InferiorStopped);
m_engine->continueInferior();
} else {
// 16^error,msg="hd:5555: Connection timed out."