forked from qt-creator/qt-creator
QNX: Prevent crash on failing attach to running process
Change-Id: Ibe8c8e83f81e7111bdd782881eb9f44df71521fe Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
@@ -141,6 +141,11 @@ void QnxAttachDebugSupport::attachToProcess()
|
|||||||
stopPDebug();
|
stopPDebug();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!runControl) {
|
||||||
|
handleError(tr("Attaching failed."));
|
||||||
|
stopPDebug();
|
||||||
|
return;
|
||||||
|
}
|
||||||
connect(runControl, &Debugger::DebuggerRunControl::stateChanged,
|
connect(runControl, &Debugger::DebuggerRunControl::stateChanged,
|
||||||
this, &QnxAttachDebugSupport::handleDebuggerStateChanged);
|
this, &QnxAttachDebugSupport::handleDebuggerStateChanged);
|
||||||
ProjectExplorerPlugin::startRunControl(runControl, ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
ProjectExplorerPlugin::startRunControl(runControl, ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||||
|
@@ -115,6 +115,6 @@ void QnxPlugin::updateDebuggerActions()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_attachToQnxApplication->setVisible(hasValidQnxKit);
|
m_attachToQnxApplication->setVisible(false && hasValidQnxKit); // FIXME
|
||||||
m_debugSeparator->setVisible(hasValidQnxKit);
|
m_debugSeparator->setVisible(false && hasValidQnxKit); // FIXME QTCREATORBUG-16608
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user