Added "monitor help" command, to display help text on supported GDB custom commands

This commit is contained in:
Nav
2022-05-05 20:14:59 +01:00
parent 4a9c26b73e
commit 6970fd674b
6 changed files with 91 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include "CommandPackets/RemoveBreakpoint.hpp"
#include "CommandPackets/Monitor.hpp"
#include "CommandPackets/ResetTarget.hpp"
#include "CommandPackets/HelpMonitorInfo.hpp"
#include "CommandPackets/BloomVersion.hpp"
#include "CommandPackets/BloomVersionMachine.hpp"
@@ -296,6 +297,10 @@ namespace Bloom::DebugServer::Gdb
// This is a monitor packet
auto monitorCommand = std::make_unique<CommandPackets::Monitor>(rawPacket);
if (monitorCommand->command == "help") {
return std::make_unique<CommandPackets::HelpMonitorInfo>(std::move(*(monitorCommand.get())));
}
if (monitorCommand->command == "version") {
return std::make_unique<CommandPackets::BloomVersion>(std::move(*(monitorCommand.get())));
}