2023-05-21 21:08:25 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
|
|
|
|
|
|
|
|
|
|
#include "src/DebugServer/Gdb/RegisterDescriptor.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace DebugServer::Gdb::AvrGdb::CommandPackets
|
2023-05-21 21:08:25 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The ReadRegister class implements a structure for the "p" command packet. In response to this packet, the server
|
|
|
|
|
* is expected to send register values for the requested register.
|
|
|
|
|
*/
|
|
|
|
|
class ReadRegister: public Gdb::CommandPackets::CommandPacket
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
GdbRegisterId registerId;
|
|
|
|
|
|
|
|
|
|
explicit ReadRegister(const RawPacket& rawPacket);
|
|
|
|
|
|
|
|
|
|
void handle(
|
|
|
|
|
DebugSession& debugSession,
|
|
|
|
|
Services::TargetControllerService& targetControllerService
|
|
|
|
|
) override;
|
|
|
|
|
};
|
|
|
|
|
}
|