forked from qt-creator/qt-creator
GdbEngine: Support interrupting docker executable
Change-Id: I084ff34b0455f069868aaac10d0003ac81ef1903 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -4620,22 +4620,14 @@ void GdbEngine::interruptInferior2()
|
|||||||
|
|
||||||
interruptLocalInferior(runParameters().attachPID.pid());
|
interruptLocalInferior(runParameters().attachPID.pid());
|
||||||
|
|
||||||
} else if (isRemoteEngine() || runParameters().startMode == AttachToRemoteProcess) {
|
} else if (isRemoteEngine() || runParameters().startMode == AttachToRemoteProcess
|
||||||
|
|| m_gdbProc.commandLine().executable().needsDevice()) {
|
||||||
|
|
||||||
CHECK_STATE(InferiorStopRequested);
|
CHECK_STATE(InferiorStopRequested);
|
||||||
if (usesTargetAsync()) {
|
if (usesTargetAsync()) {
|
||||||
runCommand({"-exec-interrupt", CB(handleInterruptInferior)});
|
runCommand({"-exec-interrupt", CB(handleInterruptInferior)});
|
||||||
} else if (m_isQnxGdb && HostOsInfo::isWindowsHost()) {
|
|
||||||
m_gdbProc.interrupt();
|
|
||||||
} else {
|
} else {
|
||||||
qint64 pid = m_gdbProc.processId();
|
m_gdbProc.interrupt();
|
||||||
bool ok = interruptProcess(pid, GdbEngineType, &m_errorString);
|
|
||||||
if (!ok) {
|
|
||||||
// FIXME: Extra state needed?
|
|
||||||
showMessage("NOTE: INFERIOR STOP NOT POSSIBLE");
|
|
||||||
showStatusMessage(Tr::tr("Interrupting not possible."));
|
|
||||||
notifyInferiorRunOk();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (isPlainEngine()) {
|
} else if (isPlainEngine()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user