Commit d23324f4 authored by Friedemann Kleint's avatar Friedemann Kleint

Debugger: Protect against launching a 2nd session.

Reviewed-by: default avatardt <qtc-committer@nokia.com>
parent dda9df22
......@@ -966,6 +966,8 @@ static IDebuggerEngine *determineDebuggerEngine(int /* pid */,
void DebuggerManager::startNewDebugger(const DebuggerStartParametersPtr &sp)
{
if (d->m_state != DebuggerNotReady)
return;
d->m_startParameters = sp;
d->m_inferiorPid = d->m_startParameters->attachPID > 0
? d->m_startParameters->attachPID : 0;
......
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