Renamed GdbRsp directory to Gdb

This commit is contained in:
Nav
2022-03-31 21:52:46 +01:00
parent 01d52bb130
commit 2aa240a680
57 changed files with 64 additions and 64 deletions

View File

@@ -126,27 +126,27 @@ add_executable(Bloom
# Debug servers
src/DebugServer/DebugServerComponent.cpp
src/DebugServer/GdbRsp/GdbRspDebugServer.cpp
src/DebugServer/GdbRsp/GdbDebugServerConfig.cpp
src/DebugServer/GdbRsp/Connection.cpp
src/DebugServer/GdbRsp/DebugSession.cpp
src/DebugServer/GdbRsp/CommandPackets/CommandPacket.cpp
src/DebugServer/GdbRsp/CommandPackets/SupportedFeaturesQuery.cpp
src/DebugServer/GdbRsp/CommandPackets/ReadRegisters.cpp
src/DebugServer/GdbRsp/CommandPackets/WriteRegister.cpp
src/DebugServer/GdbRsp/CommandPackets/ContinueExecution.cpp
src/DebugServer/GdbRsp/CommandPackets/StepExecution.cpp
src/DebugServer/GdbRsp/CommandPackets/InterruptExecution.cpp
src/DebugServer/GdbRsp/CommandPackets/SetBreakpoint.cpp
src/DebugServer/GdbRsp/CommandPackets/RemoveBreakpoint.cpp
src/DebugServer/GdbRsp/ResponsePackets/SupportedFeaturesResponse.cpp
src/DebugServer/Gdb/GdbRspDebugServer.cpp
src/DebugServer/Gdb/GdbDebugServerConfig.cpp
src/DebugServer/Gdb/Connection.cpp
src/DebugServer/Gdb/DebugSession.cpp
src/DebugServer/Gdb/CommandPackets/CommandPacket.cpp
src/DebugServer/Gdb/CommandPackets/SupportedFeaturesQuery.cpp
src/DebugServer/Gdb/CommandPackets/ReadRegisters.cpp
src/DebugServer/Gdb/CommandPackets/WriteRegister.cpp
src/DebugServer/Gdb/CommandPackets/ContinueExecution.cpp
src/DebugServer/Gdb/CommandPackets/StepExecution.cpp
src/DebugServer/Gdb/CommandPackets/InterruptExecution.cpp
src/DebugServer/Gdb/CommandPackets/SetBreakpoint.cpp
src/DebugServer/Gdb/CommandPackets/RemoveBreakpoint.cpp
src/DebugServer/Gdb/ResponsePackets/SupportedFeaturesResponse.cpp
# AVR GDB Server
src/DebugServer/GdbRsp/AvrGdb/AvrGdbRsp.cpp
src/DebugServer/GdbRsp/AvrGdb/TargetDescriptor.cpp
src/DebugServer/GdbRsp/AvrGdb/CommandPackets/AbstractMemoryAccessPacket.cpp
src/DebugServer/GdbRsp/AvrGdb/CommandPackets/ReadMemory.cpp
src/DebugServer/GdbRsp/AvrGdb/CommandPackets/WriteMemory.cpp
src/DebugServer/Gdb/AvrGdb/AvrGdbRsp.cpp
src/DebugServer/Gdb/AvrGdb/TargetDescriptor.cpp
src/DebugServer/Gdb/AvrGdb/CommandPackets/AbstractMemoryAccessPacket.cpp
src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemory.cpp
src/DebugServer/Gdb/AvrGdb/CommandPackets/WriteMemory.cpp
# Insight
src/Insight/Insight.cpp

View File

@@ -3,7 +3,7 @@
#include <variant>
// Debug server implementations
#include "GdbRsp/AvrGdb/AvrGdbRsp.hpp"
#include "Gdb/AvrGdb/AvrGdbRsp.hpp"
#include "src/Exceptions/InvalidConfig.hpp"
#include "src/Logger/Logger.hpp"

View File

@@ -4,7 +4,7 @@
#include "TargetDescriptor.hpp"
#include "src/DebugServer/GdbRsp/GdbRspDebugServer.hpp"
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb
{

View File

@@ -1,8 +1,8 @@
#include "AbstractMemoryAccessPacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/Signal.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/Signal.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -3,7 +3,7 @@
#include <cstdint>
#include <optional>
#include "src/DebugServer/GdbRsp/CommandPackets/CommandPacket.hpp"
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
#include "src/Targets/TargetMemory.hpp"

View File

@@ -1,7 +1,7 @@
#include "ReadMemory.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -1,7 +1,7 @@
#include "WriteMemory.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/OkResponsePacket.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -1,6 +1,6 @@
#pragma once
#include "src/DebugServer/GdbRsp/TargetDescriptor.hpp"
#include "src/DebugServer/Gdb/TargetDescriptor.hpp"
#include "src/Helpers/BiMap.hpp"

View File

@@ -1,11 +1,11 @@
#include "CommandPacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/Signal.hpp"
#include "src/DebugServer/Gdb/Signal.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -3,8 +3,8 @@
#include <vector>
#include <memory>
#include "src/DebugServer/GdbRsp/Packet.hpp"
#include "src/DebugServer/GdbRsp/DebugSession.hpp"
#include "src/DebugServer/Gdb/Packet.hpp"
#include "src/DebugServer/Gdb/DebugSession.hpp"
#include "src/TargetController/TargetControllerConsole.hpp"

View File

@@ -1,6 +1,6 @@
#include "ContinueExecution.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -1,8 +1,8 @@
#include "InterruptExecution.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/Signal.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/Signal.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -1,7 +1,7 @@
#include "ReadRegisters.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Targets/TargetRegister.hpp"

View File

@@ -4,7 +4,7 @@
#include "CommandPacket.hpp"
#include "src/DebugServer/GdbRsp/RegisterDescriptor.hpp"
#include "src/DebugServer/Gdb/RegisterDescriptor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
{

View File

@@ -2,8 +2,8 @@
#include <QtCore/QString>
#include "src/DebugServer/GdbRsp/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Targets/TargetBreakpoint.hpp"

View File

@@ -5,7 +5,7 @@
#include <set>
#include "CommandPacket.hpp"
#include "src/DebugServer/GdbRsp/BreakpointType.hpp"
#include "src/DebugServer/Gdb/BreakpointType.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
{

View File

@@ -2,8 +2,8 @@
#include <QtCore/QString>
#include "src/DebugServer/GdbRsp/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Targets/TargetBreakpoint.hpp"

View File

@@ -5,7 +5,7 @@
#include <set>
#include "CommandPacket.hpp"
#include "src/DebugServer/GdbRsp/BreakpointType.hpp"
#include "src/DebugServer/Gdb/BreakpointType.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
{

View File

@@ -1,6 +1,6 @@
#include "StepExecution.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"

View File

@@ -2,14 +2,14 @@
#include <QtCore/QString>
#include "src/DebugServer/GdbRsp/Feature.hpp"
#include "src/DebugServer/Gdb/Feature.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/SupportedFeaturesResponse.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/SupportedFeaturesResponse.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"
#include "src/DebugServer/GdbRsp/Exceptions/ClientNotSupported.hpp"
#include "src/DebugServer/Gdb/Exceptions/ClientNotSupported.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
{

View File

@@ -1,8 +1,8 @@
#include "WriteRegister.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/TargetStopped.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/OkResponsePacket.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Targets/TargetRegister.hpp"

View File

@@ -12,8 +12,8 @@
#include "src/Helpers/EventNotifier.hpp"
#include "src/Helpers/EpollInstance.hpp"
#include "src/DebugServer/GdbRsp/Packet.hpp"
#include "src/DebugServer/GdbRsp/ResponsePackets/ResponsePacket.hpp"
#include "src/DebugServer/Gdb/Packet.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp"
namespace Bloom::DebugServer::Gdb
{

View File

@@ -3,7 +3,7 @@
#include <vector>
#include <memory>
#include "src/DebugServer/GdbRsp/Packet.hpp"
#include "src/DebugServer/Gdb/Packet.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets
{

View File

@@ -5,7 +5,7 @@ DebugServer runs on a dedicated thread. The entry point is `DebugServerComponent
the DebugServer thread once the TargetController has been started. See `Applciation::startDebugServer()` for more.
The DebugServer is designed to accommodate numerous server implementations. The interface exposed by the server is
implementation-defined. For example, the [AVR GDB server](./GdbRsp/AvrGdb/AvrGdbRsp.hpp) exposes an interface to the
implementation-defined. For example, the [AVR GDB server](./Gdb/AvrGdb/AvrGdbRsp.hpp) exposes an interface to the
connected AVR target, by implementing the
[GDB Remote Serial Protocol](https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html), over a TCP/IP connection.
Each server must implement the interface defined in the [`ServerInterface` class](./ServerInterface.hpp).
@@ -51,8 +51,8 @@ Key points:
With an `EventNotifer` and `EpollInstance`, one can perform a blocking I/O operation which can be interrupted by an
event. For an example of this, see the AVR GDB server implementation - it employs the method described above to allow
the interruption of blocking I/O operations when an event is triggered. Specifically,
[`GdbRspDebugServer::waitForConnection()`](./GdbRsp/GdbRspDebugServer.hpp) or
[`Gdb::Connection::read()`](./GdbRsp/Connection.hpp).
[`GdbRspDebugServer::waitForConnection()`](./Gdb/GdbRspDebugServer.hpp) or
[`Gdb::Connection::read()`](./Gdb/Connection.hpp).
### Server implementations

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB