This commit is contained in:
Nav
2024-10-19 23:11:22 +01:00
parent 7a54632966
commit a65be393be
6 changed files with 93 additions and 66 deletions

View File

@@ -159,15 +159,17 @@ namespace DebugServer::Gdb
}
const auto commandPacket = this->waitForCommandPacket();
if (commandPacket) {
commandPacket->handle(
*(this->getActiveDebugSession()),
this->getGdbTargetDescriptor(),
this->targetDescriptor,
this->targetControllerService
);
if (!commandPacket) {
return;
}
commandPacket->handle(
*(this->getActiveDebugSession()),
this->getGdbTargetDescriptor(),
this->targetDescriptor,
this->targetControllerService
);
} catch (const ClientDisconnected&) {
Logger::info("GDB RSP client disconnected");
this->endDebugSession();