Added "monitor version machine" command, to display the current Bloom version in JSON format
This commit is contained in:
24
src/DebugServer/Gdb/CommandPackets/BloomVersionMachine.hpp
Normal file
24
src/DebugServer/Gdb/CommandPackets/BloomVersionMachine.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "Monitor.hpp"
|
||||
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The BloomVersionMachine class implements a structure for the "monitor version machine" GDB command.
|
||||
*
|
||||
* We just output Bloom's current version number in JSON format.
|
||||
*/
|
||||
class BloomVersionMachine: public Monitor
|
||||
{
|
||||
public:
|
||||
explicit BloomVersionMachine(Monitor&& monitorPacket);
|
||||
|
||||
void handle(
|
||||
DebugSession& debugSession,
|
||||
TargetController::TargetControllerConsole& targetControllerConsole
|
||||
) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user