forked from qt-creator/qt-creator
Cdb: Do not crash if no device is set
It still fails with a soft assertion, but at least doesn't crash. Task-number: QTCREATORBUG-19160 Change-Id: I3779f64e752abf9d3779219552a4a1be648f1dea Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c0bffe1db5
commit
175afabbd7
@@ -880,7 +880,10 @@ void CdbEngine::doInterruptInferior(SpecialStopMode sm)
|
||||
showMessage(QString("Interrupting process %1...").arg(inferiorPid()), LogMisc);
|
||||
|
||||
QTC_ASSERT(!m_signalOperation, notifyInferiorStopFailed(); return;);
|
||||
m_signalOperation = runTool()->device()->signalOperation();
|
||||
if (DebuggerRunTool *rt = runTool()) {
|
||||
if (IDevice::ConstPtr device = rt->device())
|
||||
m_signalOperation = device->signalOperation();
|
||||
}
|
||||
m_specialStopMode = sm;
|
||||
QTC_ASSERT(m_signalOperation, notifyInferiorStopFailed(); return;);
|
||||
connect(m_signalOperation.data(), &DeviceProcessSignalOperation::finished,
|
||||
|
||||
Reference in New Issue
Block a user