This commit is contained in:
Nav
2024-10-25 23:12:31 +01:00
parent 9df41ccfc5
commit 5be3ab4503
3 changed files with 26 additions and 26 deletions

View File

@@ -41,6 +41,10 @@ namespace DebugServer::Gdb::AvrGdb
)
{}
std::string AvrGdbRsp::getName() const {
return "AVR GDB Remote Serial Protocol Debug Server";
}
std::unique_ptr<CommandPackets::CommandPacket> AvrGdbRsp::rawPacketToCommandPacket(const RawPacket& rawPacket) {
using Gdb::CommandPackets::Monitor;

View File

@@ -2,14 +2,14 @@
#include <cstdint>
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
#include "AvrGdbTargetDescriptor.hpp"
#include "CommandPackets/CommandPacket.hpp"
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
namespace DebugServer::Gdb::AvrGdb
{
class AvrGdbRsp: public GdbRspDebugServer<AvrGdbTargetDescriptor, Gdb::DebugSession, CommandPackets::CommandPacket>
class AvrGdbRsp: public GdbRspDebugServer<AvrGdbTargetDescriptor, DebugSession, CommandPackets::CommandPacket>
{
public:
AvrGdbRsp(
@@ -19,9 +19,7 @@ namespace DebugServer::Gdb::AvrGdb
EventFdNotifier& eventNotifier
);
std::string getName() const override {
return "AVR GDB Remote Serial Protocol Debug Server";
}
std::string getName() const override;
protected:
std::unique_ptr<CommandPackets::CommandPacket> rawPacketToCommandPacket(const RawPacket& rawPacket) override;

View File

@@ -22,26 +22,6 @@
#include "RegisterDescriptor.hpp"
#include "Feature.hpp"
#include "src/EventManager/EventListener.hpp"
#include "src/Helpers/EpollInstance.hpp"
#include "src/Helpers/EventFdNotifier.hpp"
#include "src/Services/TargetControllerService.hpp"
#include "src/Targets/TargetDescriptor.hpp"
#include "src/EventManager/Events/TargetStateChanged.hpp"
#include "src/EventManager/EventManager.hpp"
#include "src/Logger/Logger.hpp"
#include "Exceptions/ClientDisconnected.hpp"
#include "Exceptions/ClientNotSupported.hpp"
#include "Exceptions/ClientCommunicationError.hpp"
#include "Exceptions/DebugSessionInitialisationFailure.hpp"
#include "Exceptions/DebugServerInterrupted.hpp"
#include "src/Exceptions/Exception.hpp"
#include "src/Exceptions/InvalidConfig.hpp"
// Command packets
#include "CommandPackets/CommandPacket.hpp"
#include "CommandPackets/CommandPacket.hpp"
@@ -70,8 +50,26 @@
// Response packets
#include "ResponsePackets/TargetStopped.hpp"
#include "src/EventManager/EventListener.hpp"
#include "src/Helpers/EpollInstance.hpp"
#include "src/Helpers/EventFdNotifier.hpp"
#include "src/Services/TargetControllerService.hpp"
#include "src/Services/ProcessService.hpp"
#include "src/Services/StringService.hpp"
#include "src/Targets/TargetDescriptor.hpp"
#include "src/Logger/Logger.hpp"
#include "src/EventManager/Events/TargetStateChanged.hpp"
#include "src/EventManager/EventManager.hpp"
#include "Exceptions/ClientDisconnected.hpp"
#include "Exceptions/ClientNotSupported.hpp"
#include "Exceptions/ClientCommunicationError.hpp"
#include "Exceptions/DebugSessionInitialisationFailure.hpp"
#include "Exceptions/DebugServerInterrupted.hpp"
#include "src/Exceptions/Exception.hpp"
#include "src/Exceptions/InvalidConfig.hpp"
namespace DebugServer::Gdb
{