New PartialResponsePacket class for delivering partial responses to GDB
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "ResponsePacket.hpp"
|
||||
|
||||
namespace DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
class PartialResponsePacket: public ResponsePacket
|
||||
{
|
||||
public:
|
||||
PartialResponsePacket(const std::string& output)
|
||||
: ResponsePacket(std::vector<unsigned char>{'O'})
|
||||
{
|
||||
this->data.insert(this->data.end(), output.begin(), output.end());
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user