Prevent CDB engine from being started several times.

This commit is contained in:
Friedemann Kleint
2009-06-19 11:07:38 +02:00
parent d7dbb27f0d
commit aed9367960

View File

@@ -528,6 +528,10 @@ void CdbDebugEnginePrivate::clearDisplay()
bool CdbDebugEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
{
if (m_d->m_hDebuggeeProcess) {
warning(QLatin1String("Internal error: Attempt to start debugger while another process is being debugged."));
return false;
}
m_d->clearDisplay();
const DebuggerStartMode mode = m_d->m_debuggerManager->startMode();