Renamed DebugServers namespace to DebugServer
This commit is contained in:
@@ -390,12 +390,12 @@ namespace Bloom
|
||||
}
|
||||
|
||||
void Application::startDebugServer() {
|
||||
this->debugServer = std::make_unique<DebugServers::DebugServerComponent>(
|
||||
this->debugServer = std::make_unique<DebugServer::DebugServerComponent>(
|
||||
this->debugServerConfig.value()
|
||||
);
|
||||
|
||||
this->debugServerThread = std::thread(
|
||||
&DebugServers::DebugServerComponent::run,
|
||||
&DebugServer::DebugServerComponent::run,
|
||||
this->debugServer.get()
|
||||
);
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Bloom
|
||||
*
|
||||
* See the DebugServer and GdbRspDebugServer class for more on this.
|
||||
*/
|
||||
std::unique_ptr<DebugServers::DebugServerComponent> debugServer = nullptr;
|
||||
std::unique_ptr<DebugServer::DebugServerComponent> debugServer = nullptr;
|
||||
std::thread debugServerThread;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "src/Exceptions/InvalidConfig.hpp"
|
||||
#include "src/Logger/Logger.hpp"
|
||||
|
||||
namespace Bloom::DebugServers
|
||||
namespace Bloom::DebugServer
|
||||
{
|
||||
using namespace Bloom::Events;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Bloom::DebugServers
|
||||
{
|
||||
"avr-gdb-rsp",
|
||||
[this] () -> std::unique_ptr<ServerInterface> {
|
||||
return std::make_unique<DebugServers::Gdb::AvrGdb::AvrGdbRsp>(
|
||||
return std::make_unique<DebugServer::Gdb::AvrGdb::AvrGdbRsp>(
|
||||
this->debugServerConfig,
|
||||
*(this->eventListener.get())
|
||||
);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "ServerInterface.hpp"
|
||||
|
||||
namespace Bloom::DebugServers
|
||||
namespace Bloom::DebugServer
|
||||
{
|
||||
/**
|
||||
* The DebugServer exposes the connected target to third-party debugging software such as IDEs.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "CommandPackets/ReadMemory.hpp"
|
||||
#include "CommandPackets/WriteMemory.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb
|
||||
{
|
||||
using namespace Bloom::Exceptions;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Bloom::DebugServers::Gdb::AvrGdb
|
||||
{}
|
||||
|
||||
void AvrGdbRsp::init() {
|
||||
DebugServers::Gdb::GdbRspDebugServer::init();
|
||||
DebugServer::Gdb::GdbRspDebugServer::init();
|
||||
|
||||
this->gdbTargetDescriptor = TargetDescriptor(
|
||||
this->targetControllerConsole.getTargetDescriptor()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "src/DebugServers/GdbRsp/GdbRspDebugServer.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb
|
||||
{
|
||||
/**
|
||||
* The AVR GDB client (avr-gdb) defines a set of parameters relating to AVR targets. These parameters are
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The ReadMemory class implements a structure for "m" packets. Upon receiving these packets, the server is
|
||||
* expected to read memory from the target and send it the client.
|
||||
*/
|
||||
class AbstractMemoryAccessPacket: public Bloom::DebugServers::Gdb::CommandPackets::CommandPacket
|
||||
class AbstractMemoryAccessPacket: public Bloom::DebugServer::Gdb::CommandPackets::CommandPacket
|
||||
{
|
||||
public:
|
||||
explicit AbstractMemoryAccessPacket(const std::vector<unsigned char>& rawPacket): CommandPacket(rawPacket) {};
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
using ResponsePackets::ResponsePacket;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "AbstractMemoryAccessPacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The ReadMemory class implements a structure for "m" packets. Upon receiving these packets, the server is
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
using ResponsePackets::OkResponsePacket;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "AbstractMemoryAccessPacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The WriteMemory class implements the structure for "M" packets. Upon receiving this packet, the server is
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
#include "src/Logger/Logger.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb
|
||||
{
|
||||
using Bloom::Targets::TargetRegisterDescriptor;
|
||||
using Bloom::Targets::TargetRegisterType;
|
||||
@@ -13,7 +13,7 @@ namespace Bloom::DebugServers::Gdb::AvrGdb
|
||||
using Bloom::Exceptions::Exception;
|
||||
|
||||
TargetDescriptor::TargetDescriptor(const Bloom::Targets::TargetDescriptor& targetDescriptor)
|
||||
: DebugServers::Gdb::TargetDescriptor(targetDescriptor)
|
||||
: DebugServer::Gdb::TargetDescriptor(targetDescriptor)
|
||||
{
|
||||
this->loadRegisterMappings();
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
#include "src/Helpers/BiMap.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::AvrGdb
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb
|
||||
{
|
||||
class TargetDescriptor: public DebugServers::Gdb::TargetDescriptor
|
||||
class TargetDescriptor: public DebugServer::Gdb::TargetDescriptor
|
||||
{
|
||||
public:
|
||||
BiMap<GdbRegisterNumberType, RegisterDescriptor> registerDescriptorsByGdbNumber = {};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
enum class BreakpointType: int
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::ResponsePacket;
|
||||
using ResponsePackets::OkResponsePacket;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "src/TargetController/TargetControllerConsole.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* GDB RSP command packets are sent to the server, from the GDB client. These packets carry instructions that the
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
using Exceptions::Exception;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "CommandPacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The ContinueExecution class implements a structure for "c" packets. These packets instruct the server
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::TargetStopped;
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "CommandPacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The InterruptException class represents interrupt command packets. Upon receiving an interrupt packet, the
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using Targets::TargetRegister;
|
||||
using Targets::TargetRegisterDescriptors;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "src/DebugServers/GdbRsp/RegisterDescriptor.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The ReadRegisters class implements a structure for "g" and "p" command packets. In response to these
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using Targets::TargetBreakpoint;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "CommandPacket.hpp"
|
||||
#include "src/DebugServers/GdbRsp/BreakpointType.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The RemoveBreakpoint class implements the structure for "z" command packets. Upon receiving this command, the
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using Targets::TargetBreakpoint;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "CommandPacket.hpp"
|
||||
#include "src/DebugServers/GdbRsp/BreakpointType.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The SetBreakpoint class implements the structure for "Z" command packets. Upon receiving this command, the
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "CommandPacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The StepExecution class implements the structure for "s" command packets. Upon receiving this command, the
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
#include "src/DebugServers/GdbRsp/Exceptions/ClientNotSupported.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using ResponsePackets::SupportedFeaturesResponse;
|
||||
using ResponsePackets::ErrorResponsePacket;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "CommandPacket.hpp"
|
||||
#include "../Feature.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The SupportedFeaturesQuery command packet is a query from the GDB client, requesting a list of GDB features
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "src/Logger/Logger.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
using Targets::TargetRegister;
|
||||
using Targets::TargetRegisterDescriptors;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "CommandPacket.hpp"
|
||||
#include "src/Targets/TargetRegister.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::CommandPackets
|
||||
namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The WriteRegisters class implements the structure for "P" packets. Upon receiving this packet,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "src/Logger/Logger.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
using namespace Exceptions;
|
||||
using namespace Bloom::Exceptions;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "src/DebugServers/GdbRsp/Packet.hpp"
|
||||
#include "src/DebugServers/GdbRsp/ResponsePackets/ResponsePacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
/**
|
||||
* The Connection class represents an active connection between the GDB RSP server and client.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Logger/Logger.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
DebugSession::DebugSession(Connection&& connection, const TargetDescriptor& targetDescriptor)
|
||||
: connection(std::move(connection))
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "TargetDescriptor.hpp"
|
||||
#include "Connection.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
class DebugSession
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::Exceptions
|
||||
namespace Bloom::DebugServer::Gdb::Exceptions
|
||||
{
|
||||
/**
|
||||
* In the event that communication between the GDB RSP client and Bloom fails, a ClientCommunicationFailure
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::Exceptions
|
||||
namespace Bloom::DebugServer::Gdb::Exceptions
|
||||
{
|
||||
/**
|
||||
* When a GDB RSP client unexpectedly drops the connection in the middle of an IO operation, a ClientDisconnected
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::Exceptions
|
||||
namespace Bloom::DebugServer::Gdb::Exceptions
|
||||
{
|
||||
/**
|
||||
* In the event that the GDB debug server determines that the connected client cannot be served,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::Exceptions
|
||||
namespace Bloom::DebugServer::Gdb::Exceptions
|
||||
{
|
||||
/**
|
||||
* The GDB server may abort a debug session with the client, if an internal error occurs. One circumstance where
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Helpers/BiMap.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
enum class Feature: int
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "GdbDebugServerConfig.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
GdbDebugServerConfig::GdbDebugServerConfig(const DebugServerConfig& debugServerConfig)
|
||||
: DebugServerConfig(debugServerConfig)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/ProjectConfig.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
/**
|
||||
* Extending the generic DebugServerConfig struct to accommodate GDB debug server configuration parameters.
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
// Response packets
|
||||
#include "ResponsePackets/TargetStopped.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
using namespace Exceptions;
|
||||
using namespace Bloom::Exceptions;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "src/Helpers/BiMap.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
/**
|
||||
* The GdbRspDebugServer is an implementation of a GDB server using the GDB Remote Serial Protocol.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
using RawPacketType = std::vector<unsigned char>;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
using GdbRegisterNumberType = int;
|
||||
|
||||
@@ -56,10 +56,10 @@ namespace std
|
||||
* class).
|
||||
*/
|
||||
template<>
|
||||
class hash<Bloom::DebugServers::Gdb::RegisterDescriptor>
|
||||
class hash<Bloom::DebugServer::Gdb::RegisterDescriptor>
|
||||
{
|
||||
public:
|
||||
std::size_t operator () (const Bloom::DebugServers::Gdb::RegisterDescriptor& descriptor) const {
|
||||
std::size_t operator () (const Bloom::DebugServer::Gdb::RegisterDescriptor& descriptor) const {
|
||||
// We use the GDB register number as the hash, as it is unique to the register.
|
||||
return static_cast<size_t>(descriptor.number);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "ResponsePacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
/**
|
||||
* Error response packet expected by the GDB client, to indicate an error, in response to certain commands.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "ResponsePacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
/**
|
||||
* OK response packet expected by the GDB client, in response to certain commands.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "src/DebugServers/GdbRsp/Packet.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
/**
|
||||
* Upon receiving a CommandPacket from the connected GDB RSP client, the server is expected to respond with a
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "SupportedFeaturesResponse.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
std::vector<unsigned char> SupportedFeaturesResponse::getData() const {
|
||||
std::string output = "qSupported:";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "ResponsePacket.hpp"
|
||||
#include "../Feature.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
/**
|
||||
* The SupportedFeaturesResponse class implements the response packet structure for the "qSupported" command.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "../StopReason.hpp"
|
||||
#include "src/Targets/TargetRegister.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
namespace Bloom::DebugServer::Gdb::ResponsePackets
|
||||
{
|
||||
/**
|
||||
* The TargetStopped class implements the response packet structure for any commands that expect a "StopReply"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
enum class Signal: unsigned char
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "src/Helpers/BiMap.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
enum class StopReason: int
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "RegisterDescriptor.hpp"
|
||||
|
||||
namespace Bloom::DebugServers::Gdb
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
struct TargetDescriptor
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Bloom::DebugServers
|
||||
namespace Bloom::DebugServer
|
||||
{
|
||||
class ServerInterface
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user