Added "monitor version" command, to display the current Bloom version

This commit is contained in:
Nav
2022-05-05 20:13:30 +01:00
parent 587d69afd0
commit c9d1dd92a3
4 changed files with 66 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include "CommandPackets/RemoveBreakpoint.hpp"
#include "CommandPackets/Monitor.hpp"
#include "CommandPackets/ResetTarget.hpp"
#include "CommandPackets/BloomVersion.hpp"
// Response packets
#include "ResponsePackets/TargetStopped.hpp"
@@ -294,6 +295,9 @@ namespace Bloom::DebugServer::Gdb
// This is a monitor packet
auto monitorCommand = std::make_unique<CommandPackets::Monitor>(rawPacket);
if (monitorCommand->command == "version") {
return std::make_unique<CommandPackets::BloomVersion>(std::move(*(monitorCommand.get())));
}
if (monitorCommand->command == "reset") {
return std::make_unique<CommandPackets::ResetTarget>(std::move(*(monitorCommand.get())));
}