Help text for target driver passthrough commands

This commit is contained in:
Nav
2024-12-16 21:36:47 +00:00
parent 6873b2f53a
commit 9486cc0163
14 changed files with 119 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ namespace DebugServer::Gdb::CommandPackets
DebugSession& debugSession,
const TargetDescriptor& gdbTargetDescriptor,
const Targets::TargetDescriptor& targetDescriptor,
TargetControllerService&
TargetControllerService& targetControllerService
) {
Logger::info("Handling HelpMonitorInfo packet");
@@ -132,6 +132,12 @@ namespace DebugServer::Gdb::CommandPackets
output += leftPadding + " To repeat the hexadecimal sequence 'FF00FF00AABBCC' across the entirety of the target's EEPROM memory segment.\n\n";
}
const auto passthroughText = targetControllerService.getTargetPassthroughHelpText();
if (!passthroughText.empty()) {
output += "--------------------------------------------------------------------------------------------------------------\n\n";
output += "Target driver passthrough commands:\n\n" + passthroughText;
}
output += "\n";
debugSession.connection.writePacket(ResponsePacket{Services::StringService::toHex(output)});
}