forked from qt-creator/qt-creator
Debugger: Remove queued commands in GDB engine
Instead, always pipe them into the GDB process, even if the inferior is not stopped. The original need to hold back commands until the inferior is stopped seems to be long gone. Change-Id: I234fdd067d78966c9896f1fa85a134900bf6dec7 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -401,7 +401,6 @@ void GdbRemoteServerEngine::handleSetNtoExecutable(const DebuggerResponse &respo
|
||||
QString msg = QString::fromLocal8Bit(response.data["msg"].data());
|
||||
notifyInferiorSetupFailed(msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void GdbRemoteServerEngine::runEngine()
|
||||
@@ -435,8 +434,7 @@ void GdbRemoteServerEngine::interruptInferior2()
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorStopRequested, qDebug() << state());
|
||||
if (boolSetting(TargetAsync)) {
|
||||
postCommand("-exec-interrupt", GdbEngine::Immediate,
|
||||
CB(handleInterruptInferior));
|
||||
postCommand("-exec-interrupt", NoFlags, CB(handleInterruptInferior));
|
||||
} else if (m_isQnxGdb && HostOsInfo::isWindowsHost()) {
|
||||
m_gdbProc.interrupt();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user