2022-03-24 19:06:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
2024-10-25 22:22:25 +01:00
|
|
|
#include "AvrGdbTargetDescriptor.hpp"
|
|
|
|
|
#include "CommandPackets/CommandPacket.hpp"
|
2022-03-24 19:06:09 +00:00
|
|
|
|
2022-03-31 21:52:46 +01:00
|
|
|
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
|
2022-03-24 19:06:09 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace DebugServer::Gdb::AvrGdb
|
2022-03-24 19:06:09 +00:00
|
|
|
{
|
2024-10-25 22:22:25 +01:00
|
|
|
class AvrGdbRsp: public GdbRspDebugServer<AvrGdbTargetDescriptor, Gdb::DebugSession, CommandPackets::CommandPacket>
|
2022-03-24 19:06:09 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2022-03-27 18:32:13 +01:00
|
|
|
AvrGdbRsp(
|
|
|
|
|
const DebugServerConfig& debugServerConfig,
|
2023-11-22 00:37:29 +00:00
|
|
|
const Targets::TargetDescriptor& targetDescriptor,
|
2022-04-15 22:05:50 +01:00
|
|
|
EventListener& eventListener,
|
|
|
|
|
EventFdNotifier& eventNotifier
|
2022-03-27 18:32:13 +01:00
|
|
|
);
|
2022-03-24 19:06:09 +00:00
|
|
|
|
|
|
|
|
std::string getName() const override {
|
|
|
|
|
return "AVR GDB Remote Serial Protocol Debug Server";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected:
|
2024-10-25 22:22:25 +01:00
|
|
|
std::unique_ptr<CommandPackets::CommandPacket> rawPacketToCommandPacket(const RawPacket& rawPacket) override;
|
|
|
|
|
std::set<std::pair<Feature, std::optional<std::string>>> getSupportedFeatures() override;
|
2023-09-21 00:40:30 +01:00
|
|
|
void handleTargetStoppedGdbResponse(Targets::TargetMemoryAddress programAddress) override;
|
2022-03-24 19:06:09 +00:00
|
|
|
};
|
|
|
|
|
}
|