Added "monitor help" command, to display help text on supported GDB custom commands
This commit is contained in:
@@ -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())));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user