New GDB "monitor reset" command packet class

This commit is contained in:
Nav
2022-04-08 22:23:30 +01:00
parent 583b01fa34
commit f7feef9ea1
5 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <cstdint>
#include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
{
/**
* The ResetTarget class implements a structure for the custom reset command (triggered via the "monitor reset"
* GDB command
*
* The "monitor reset" command will trigger a target reset and hold the target in a stopped state.
*/
class ResetTarget: public Monitor
{
public:
explicit ResetTarget(Monitor&& monitorPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
};
}