2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ResponsePacket.hpp"
|
|
|
|
|
|
|
|
|
|
namespace Bloom::DebugServers::Gdb {
|
|
|
|
|
enum class Feature;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* OK response packet expected by the GDB client, in response to certain commands.
|
|
|
|
|
*/
|
|
|
|
|
class Ok: public ResponsePacket
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Ok() = default;
|
|
|
|
|
|
2021-06-22 23:52:31 +01:00
|
|
|
[[nodiscard]] std::vector<unsigned char> getData() const override {
|
2021-04-04 21:04:12 +01:00
|
|
|
return {'O', 'K'};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|