New ErrorResponsePacket class for GDB errors

This commit is contained in:
Nav
2022-03-21 19:50:03 +00:00
parent 1511a8483a
commit 77d431cb0f

View File

@@ -0,0 +1,19 @@
#pragma once
#include "ResponsePacket.hpp"
namespace Bloom::DebugServers::Gdb::ResponsePackets
{
/**
* Error response packet expected by the GDB client, to indicate an error, in response to certain commands.
*/
class ErrorResponsePacket: public ResponsePacket
{
public:
ErrorResponsePacket() = default;
[[nodiscard]] std::vector<unsigned char> getData() const override {
return {'E', '0', '1'};
}
};
}