2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
2022-03-31 16:13:44 +01:00
|
|
|
#include "src/DebugServer/GdbRsp/Packet.hpp"
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-03-31 16:05:39 +01:00
|
|
|
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* 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;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|