Tidying
This commit is contained in:
@@ -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) {
|
std::unique_ptr<CommandPackets::CommandPacket> AvrGdbRsp::rawPacketToCommandPacket(const RawPacket& rawPacket) {
|
||||||
using Gdb::CommandPackets::Monitor;
|
using Gdb::CommandPackets::Monitor;
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
|
||||||
|
|
||||||
#include "AvrGdbTargetDescriptor.hpp"
|
#include "AvrGdbTargetDescriptor.hpp"
|
||||||
#include "CommandPackets/CommandPacket.hpp"
|
#include "CommandPackets/CommandPacket.hpp"
|
||||||
|
|
||||||
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
|
|
||||||
|
|
||||||
namespace DebugServer::Gdb::AvrGdb
|
namespace DebugServer::Gdb::AvrGdb
|
||||||
{
|
{
|
||||||
class AvrGdbRsp: public GdbRspDebugServer<AvrGdbTargetDescriptor, Gdb::DebugSession, CommandPackets::CommandPacket>
|
class AvrGdbRsp: public GdbRspDebugServer<AvrGdbTargetDescriptor, DebugSession, CommandPackets::CommandPacket>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AvrGdbRsp(
|
AvrGdbRsp(
|
||||||
@@ -19,9 +19,7 @@ namespace DebugServer::Gdb::AvrGdb
|
|||||||
EventFdNotifier& eventNotifier
|
EventFdNotifier& eventNotifier
|
||||||
);
|
);
|
||||||
|
|
||||||
std::string getName() const override {
|
std::string getName() const override;
|
||||||
return "AVR GDB Remote Serial Protocol Debug Server";
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::unique_ptr<CommandPackets::CommandPacket> rawPacketToCommandPacket(const RawPacket& rawPacket) override;
|
std::unique_ptr<CommandPackets::CommandPacket> rawPacketToCommandPacket(const RawPacket& rawPacket) override;
|
||||||
|
|||||||
@@ -22,26 +22,6 @@
|
|||||||
#include "RegisterDescriptor.hpp"
|
#include "RegisterDescriptor.hpp"
|
||||||
#include "Feature.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
|
// Command packets
|
||||||
#include "CommandPackets/CommandPacket.hpp"
|
#include "CommandPackets/CommandPacket.hpp"
|
||||||
#include "CommandPackets/CommandPacket.hpp"
|
#include "CommandPackets/CommandPacket.hpp"
|
||||||
@@ -70,8 +50,26 @@
|
|||||||
// Response packets
|
// Response packets
|
||||||
#include "ResponsePackets/TargetStopped.hpp"
|
#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/ProcessService.hpp"
|
||||||
#include "src/Services/StringService.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
|
namespace DebugServer::Gdb
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user