Debugger: Fix crash in combined debugging

Fixes regression introduced in f8ad72deb3: Slave engines don't
have a RunControl pointer of their own, use the master pointer.

Change-Id: I1c695a1454cafc3532fb1b79374fac4f3ead607e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2017-02-27 18:06:25 +01:00
parent bfb1a084dc
commit 7c29ae462b

View File

@@ -1434,7 +1434,7 @@ void DebuggerEngine::notifyInferiorPid(qint64 pid)
return;
d->m_inferiorPid = pid;
if (pid) {
d->m_runControl->setApplicationProcessHandle(ProcessHandle(pid));
runControl()->setApplicationProcessHandle(ProcessHandle(pid));
showMessage(tr("Taking notice of pid %1").arg(pid));
if (d->m_runParameters.startMode == StartInternal
|| d->m_runParameters.startMode == StartExternal