forked from qt-creator/qt-creator
debugger: use -exec-interrupt to interrupt inferiors in gdbserver
This commit is contained in:
@@ -528,12 +528,18 @@ void GdbEngine::readGdbStandardOutput()
|
||||
void GdbEngine::interruptInferior()
|
||||
{
|
||||
qq->notifyInferiorStopRequested();
|
||||
|
||||
if (m_gdbProc.state() == QProcess::NotRunning) {
|
||||
debugMessage(_("TRYING TO INTERRUPT INFERIOR WITHOUT RUNNING GDB"));
|
||||
qq->notifyInferiorExited();
|
||||
return;
|
||||
}
|
||||
|
||||
if (q->startMode() == AttachRemote) {
|
||||
execCommand(_("-exec-interrupt"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (q->m_attachedPID <= 0) {
|
||||
debugMessage(_("TRYING TO INTERRUPT INFERIOR BEFORE PID WAS OBTAINED"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user