New custom GDB command to output target info in JSON format

This commit is contained in:
Nav
2022-05-06 19:31:33 +01:00
parent 7776ba88c3
commit a60f780287
5 changed files with 112 additions and 4 deletions

View File

@@ -29,6 +29,7 @@
#include "CommandPackets/HelpMonitorInfo.hpp"
#include "CommandPackets/BloomVersion.hpp"
#include "CommandPackets/BloomVersionMachine.hpp"
#include "CommandPackets/TargetInfoMachine.hpp"
// Response packets
#include "ResponsePackets/TargetStopped.hpp"
@@ -313,6 +314,10 @@ namespace Bloom::DebugServer::Gdb
return std::make_unique<CommandPackets::ResetTarget>(std::move(*(monitorCommand.get())));
}
if (monitorCommand->command == "target-info machine") {
return std::make_unique<CommandPackets::TargetInfoMachine>(std::move(*(monitorCommand.get())));
}
return monitorCommand;
}
}