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();
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user