forked from qt-creator/qt-creator
Debugger: Set inferior device when attaching to running application
The device is needed to properly interrupt the inferior with cdb. Change-Id: I96f3a7393770be9821d8edd7123c458399d4494a Task-nnumber: QTCREATORBUG-19253 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -881,7 +881,10 @@ void CdbEngine::doInterruptInferior(SpecialStopMode sm)
|
||||
|
||||
QTC_ASSERT(!m_signalOperation, notifyInferiorStopFailed(); return;);
|
||||
if (DebuggerRunTool *rt = runTool()) {
|
||||
if (IDevice::ConstPtr device = rt->device())
|
||||
IDevice::ConstPtr device = rt->device();
|
||||
if (!device)
|
||||
device = runParameters().inferior.device;
|
||||
if (device)
|
||||
m_signalOperation = device->signalOperation();
|
||||
}
|
||||
m_specialStopMode = sm;
|
||||
|
||||
Reference in New Issue
Block a user