Changed AVR-GDB command packet class to a bare interface class
This commit is contained in:
@@ -5,11 +5,12 @@
|
||||
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
|
||||
|
||||
#include "AvrGdbTargetDescriptor.hpp"
|
||||
#include "CommandPackets/CommandPacket.hpp"
|
||||
#include "CommandPackets/AvrGdbCommandPacketInterface.hpp"
|
||||
|
||||
namespace DebugServer::Gdb::AvrGdb
|
||||
{
|
||||
class AvrGdbRsp: public GdbRspDebugServer<AvrGdbTargetDescriptor, DebugSession, CommandPackets::CommandPacket>
|
||||
class AvrGdbRsp
|
||||
: public GdbRspDebugServer<AvrGdbTargetDescriptor, DebugSession, CommandPackets::AvrGdbCommandPacketInterface>
|
||||
{
|
||||
public:
|
||||
AvrGdbRsp(
|
||||
@@ -22,7 +23,9 @@ namespace DebugServer::Gdb::AvrGdb
|
||||
std::string getName() const override;
|
||||
|
||||
protected:
|
||||
std::unique_ptr<CommandPackets::CommandPacket> rawPacketToCommandPacket(const RawPacket& rawPacket) override;
|
||||
std::unique_ptr<CommandPackets::AvrGdbCommandPacketInterface> rawPacketToCommandPacket(
|
||||
const RawPacket& rawPacket
|
||||
) override;
|
||||
std::set<std::pair<Feature, std::optional<std::string>>> getSupportedFeatures() override;
|
||||
void handleTargetStoppedGdbResponse(Targets::TargetMemoryAddress programAddress) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user