debugger: simplify combined state handling

This commit is contained in:
hjk
2011-01-14 19:32:47 +01:00
parent 13caaabaff
commit 331ebd5be1
3 changed files with 12 additions and 31 deletions

View File

@@ -1074,10 +1074,9 @@ void DebuggerEngine::notifyInferiorExited()
showMessage(_("NOTE: INFERIOR EXITED"));
d->resetLocation();
setState(InferiorExitOk);
if (isMasterEngine()) {
setState(InferiorShutdownOk);
setState(InferiorShutdownOk);
if (isMasterEngine())
d->queueShutdownEngine();
}
}
void DebuggerEngine::slaveEngineStateChanged(DebuggerEngine *slaveEngine,
@@ -1125,18 +1124,6 @@ void DebuggerEngine::setState(DebuggerState state, bool forced)
masterEngine()->slaveEngineStateChanged(this, state);
}
void DebuggerEngine::setSilentState(DebuggerState state)
{
qDebug() << "SILENT STATUS CHANGE: " << this
<< " FROM " << stateName(d->m_state) << " TO " << stateName(state)
<< isMasterEngine();
DebuggerState oldState = d->m_state;
d->m_state = state;
if (!isAllowedTransition(oldState, state))
qDebug() << "*** SILENT UNEXPECTED STATE TRANSITION " << this;
}
void DebuggerEngine::updateViews()
{
// The slave engines are not entitled to change the view. Their wishes