Implemented disabling of GDB packet acknowledgement, and disabled it by default. The new packetAcknowledgement debug server config param can be used to keep it enabled.

This commit is contained in:
Nav
2024-10-19 23:10:34 +01:00
parent 9b1489fbf2
commit 7a54632966
7 changed files with 73 additions and 14 deletions

View File

@@ -155,11 +155,18 @@ namespace DebugServer::Gdb::AvrGdb
}
std::set<std::pair<Feature, std::optional<std::string>>> AvrGdbRsp::getSupportedFeatures() {
return {
auto output = std::set<std::pair<Feature, std::optional<std::string>>>{
{Feature::HARDWARE_BREAKPOINTS, std::nullopt},
{Feature::SOFTWARE_BREAKPOINTS, std::nullopt},
{Feature::MEMORY_MAP_READ, std::nullopt},
{Feature::VCONT_ACTIONS_QUERY, std::nullopt},
};
if (!this->debugServerConfig.packetAcknowledgement) {
output.emplace(Feature::NO_ACK_MODE, std::nullopt);
}
return output;
}
void AvrGdbRsp::handleTargetStoppedGdbResponse(Targets::TargetMemoryAddress programAddress) {