diff --git a/src/DebugServer/Gdb/ResponsePackets/PartialResponsePacket.hpp b/src/DebugServer/Gdb/ResponsePackets/PartialResponsePacket.hpp new file mode 100644 index 00000000..c4a200fe --- /dev/null +++ b/src/DebugServer/Gdb/ResponsePackets/PartialResponsePacket.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include + +#include "ResponsePacket.hpp" + +namespace DebugServer::Gdb::ResponsePackets +{ + class PartialResponsePacket: public ResponsePacket + { + public: + PartialResponsePacket(const std::string& output) + : ResponsePacket(std::vector{'O'}) + { + this->data.insert(this->data.end(), output.begin(), output.end()); + } + }; +}