Files
BloomPatched/src/DebugServer/Gdb/AvrGdb/AvrGdbRsp.hpp

41 lines
1.0 KiB
C++
Raw Normal View History

#pragma once
#include <cstdint>
#include "TargetDescriptor.hpp"
2022-03-31 21:52:46 +01:00
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
namespace DebugServer::Gdb::AvrGdb
{
class AvrGdbRsp: public GdbRspDebugServer
{
public:
AvrGdbRsp(
const DebugServerConfig& debugServerConfig,
EventListener& eventListener,
EventFdNotifier& eventNotifier
);
std::string getName() const override {
return "AVR GDB Remote Serial Protocol Debug Server";
}
protected:
void init() override;
const Gdb::TargetDescriptor& getGdbTargetDescriptor() override {
return this->gdbTargetDescriptor.value();
}
std::unique_ptr<Gdb::CommandPackets::CommandPacket> resolveCommandPacket(
2022-10-01 21:01:37 +01:00
const RawPacket& rawPacket
) override;
2022-10-09 13:10:17 +01:00
std::set<std::pair<Feature, std::optional<std::string>>> getSupportedFeatures() override;
private:
std::optional<TargetDescriptor> gdbTargetDescriptor;
};
}