26 lines
721 B
C++
26 lines
721 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <optional>
|
||
|
|
|
||
|
|
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
|
||
|
|
|
||
|
|
#include "src/DebugServer/Gdb/RegisterDescriptor.hpp"
|
||
|
|
|
||
|
|
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* The ReadRegisters class implements a structure for the "g" command packet. In response to this packet, the
|
||
|
|
* server is expected to send register values for all registers.
|
||
|
|
*/
|
||
|
|
class ReadRegisters: public Gdb::CommandPackets::CommandPacket
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit ReadRegisters(const RawPacket& rawPacket);
|
||
|
|
|
||
|
|
void handle(
|
||
|
|
DebugSession& debugSession,
|
||
|
|
Services::TargetControllerService& targetControllerService
|
||
|
|
) override;
|
||
|
|
};
|
||
|
|
}
|