Fixed bug in GDB debug server where interrupt packet wasn't being properly acknowledged

This commit is contained in:
Nav
2021-07-04 00:28:31 +01:00
parent 9d366c822f
commit 12fbbc892d

View File

@@ -447,6 +447,7 @@ void GdbRspDebugServer::handleGdbPacket(CommandPackets::InterruptExecution& pack
try { try {
this->targetControllerConsole.stopTargetExecution(); this->targetControllerConsole.stopTargetExecution();
this->clientConnection->writePacket(TargetStopped(Signal::INTERRUPTED)); this->clientConnection->writePacket(TargetStopped(Signal::INTERRUPTED));
this->clientConnection->waitingForBreak = false;
} catch (const Exception& exception) { } catch (const Exception& exception) {
Logger::error("Failed to interrupt execution - " + exception.getMessage()); Logger::error("Failed to interrupt execution - " + exception.getMessage());