Commit de20b436 authored by Friedemann Kleint's avatar Friedemann Kleint

Prevent CDB engine from being started several times.

parent 18cae0bf
...@@ -528,6 +528,10 @@ void CdbDebugEnginePrivate::clearDisplay() ...@@ -528,6 +528,10 @@ void CdbDebugEnginePrivate::clearDisplay()
bool CdbDebugEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp) 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(); m_d->clearDisplay();
const DebuggerStartMode mode = m_d->m_debuggerManager->startMode(); const DebuggerStartMode mode = m_d->m_debuggerManager->startMode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment