2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <set>
|
2021-06-22 23:52:31 +01:00
|
|
|
#include <utility>
|
2022-10-09 13:10:17 +01:00
|
|
|
#include <optional>
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
#include "ResponsePacket.hpp"
|
2022-04-06 17:39:21 +01:00
|
|
|
|
|
|
|
|
#include "src/DebugServer/Gdb/Feature.hpp"
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace DebugServer::Gdb::ResponsePackets
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The SupportedFeaturesResponse class implements the response packet structure for the "qSupported" command.
|
|
|
|
|
*/
|
|
|
|
|
class SupportedFeaturesResponse: public ResponsePacket
|
|
|
|
|
{
|
|
|
|
|
public:
|
2022-04-06 17:39:21 +01:00
|
|
|
explicit SupportedFeaturesResponse(
|
|
|
|
|
const std::set<std::pair<Feature, std::optional<std::string>>>& supportedFeatures
|
|
|
|
|
);
|
2021-10-06 21:12:31 +01:00
|
|
|
|
2022-04-06 17:39:21 +01:00
|
|
|
private:
|
2021-10-06 21:12:31 +01:00
|
|
|
std::set<std::pair<Feature, std::optional<std::string>>> supportedFeatures;
|
2021-04-04 21:04:12 +01:00
|
|
|
};
|
|
|
|
|
}
|