Commit 7c48f9c5 authored by hjk's avatar hjk Committed by hjk

QNX: Prevent crash on failing attach to running process

Change-Id: Ibe8c8e83f81e7111bdd782881eb9f44df71521fe
Reviewed-by: Andy Shaw's avatarAndy Shaw <andy.shaw@qt.io>
parent 2b3d4685
......@@ -141,6 +141,11 @@ void QnxAttachDebugSupport::attachToProcess()
stopPDebug();
return;
}
if (!runControl) {
handleError(tr("Attaching failed."));
stopPDebug();
return;
}
connect(runControl, &Debugger::DebuggerRunControl::stateChanged,
this, &QnxAttachDebugSupport::handleDebuggerStateChanged);
ProjectExplorerPlugin::startRunControl(runControl, ProjectExplorer::Constants::DEBUG_RUN_MODE);
......
......@@ -115,6 +115,6 @@ void QnxPlugin::updateDebuggerActions()
}
}
m_attachToQnxApplication->setVisible(hasValidQnxKit);
m_debugSeparator->setVisible(hasValidQnxKit);
m_attachToQnxApplication->setVisible(false && hasValidQnxKit); // FIXME
m_debugSeparator->setVisible(false && hasValidQnxKit); // FIXME QTCREATORBUG-16608
}
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