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

@@ -0,0 +1,24 @@
#pragma once
#include <cstdint>
#include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
{
/**
* The BloomVersion class implements a structure for the "monitor version" GDB command.
*
* We just output Bloom's current version number.
*/
class BloomVersion: public Monitor
{
public:
explicit BloomVersion(Monitor&& monitorPacket);
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}