New custom GDB command to output target info in JSON format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user