23 lines
524 B
C++
23 lines
524 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
#include "src/DebugServers/GdbRsp/Packet.hpp"
|
||
|
|
|
||
|
|
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Upon receiving a CommandPacket from the connected GDB RSP client, the server is expected to respond with a
|
||
|
|
* response packet.
|
||
|
|
*/
|
||
|
|
class ResponsePacket: public Packet
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
ResponsePacket() = default;
|
||
|
|
explicit ResponsePacket(const std::vector<unsigned char>& data) {
|
||
|
|
this->data = data;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|