debugger: move state change to EngineStarting into the base class

This commit is contained in:
hjk
2010-07-08 13:28:22 +02:00
parent c8fae11222
commit eab55aac6b
7 changed files with 7 additions and 9 deletions

View File

@@ -1762,8 +1762,7 @@ AbstractGdbAdapter *GdbEngine::createAdapter()
void GdbEngine::startDebugger()
{
//qDebug() << "GDB START DEBUGGER";
QTC_ASSERT(state() == DebuggerNotReady, setState(DebuggerNotReady));
setState(EngineStarting);
QTC_ASSERT(state() == EngineStarting, qDebug() << state());
QTC_ASSERT(m_debuggingHelperState == DebuggingHelperUninitialized, /**/);
QTC_ASSERT(m_gdbAdapter == 0, /**/);