Added "monitor version machine" command, to display the current Bloom version in JSON format

This commit is contained in:
Nav
2022-05-05 20:14:23 +01:00
parent c9d1dd92a3
commit 4a9c26b73e
4 changed files with 72 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#include "CommandPackets/Monitor.hpp"
#include "CommandPackets/ResetTarget.hpp"
#include "CommandPackets/BloomVersion.hpp"
#include "CommandPackets/BloomVersionMachine.hpp"
// Response packets
#include "ResponsePackets/TargetStopped.hpp"
@@ -298,6 +299,11 @@ namespace Bloom::DebugServer::Gdb
if (monitorCommand->command == "version") {
return std::make_unique<CommandPackets::BloomVersion>(std::move(*(monitorCommand.get())));
}
if (monitorCommand->command == "version machine") {
return std::make_unique<CommandPackets::BloomVersionMachine>(std::move(*(monitorCommand.get())));
}
if (monitorCommand->command == "reset") {
return std::make_unique<CommandPackets::ResetTarget>(std::move(*(monitorCommand.get())));
}