Files
BloomPatched/src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp

27 lines
668 B
C++
Raw Normal View History

2021-04-04 21:04:12 +01:00
#pragma once
#include <vector>
2022-04-06 17:39:21 +01:00
#include <string>
2021-04-04 21:04:12 +01:00
2022-03-31 21:52:46 +01:00
#include "src/DebugServer/Gdb/Packet.hpp"
2021-04-04 21:04:12 +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;
}
explicit ResponsePacket(const std::string& data) {
this->data = std::vector<unsigned char>(data.begin(), data.end());
}
2021-04-04 21:04:12 +01:00
};
}