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

@@ -376,13 +376,12 @@ void CdbDebugEngine::startupChecks()
void CdbDebugEngine::startDebugger()
{
setState(EngineStarting, Q_FUNC_INFO, __LINE__);
QTC_ASSERT(state() == EngineStarting, qDebug() << state());
const DebuggerStartParameters &sp = startParameters();
if (debugCDBExecution)
qDebug() << "startDebugger";
CdbCore::BreakPoint::clearNormalizeFileNameCache();
startupChecks();
setState(AdapterStarting, Q_FUNC_INFO, __LINE__);
m_d->checkVersion();
if (m_d->m_hDebuggeeProcess) {
warning(QLatin1String("Internal error: Attempt to start debugger while another process is being debugged."));