Help text for target driver passthrough commands
This commit is contained in:
@@ -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)});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user