Removed redundant 'Bloom' namespace from entire codebase

This commit is contained in:
Nav
2023-08-13 15:47:51 +01:00
parent 0935ba65cf
commit 5896306f1a
555 changed files with 6254 additions and 6510 deletions

View File

@@ -20,8 +20,6 @@
#include "src/Exceptions/InvalidConfig.hpp" #include "src/Exceptions/InvalidConfig.hpp"
namespace Bloom
{
using namespace Exceptions; using namespace Exceptions;
Application::Application(std::vector<std::string>&& arguments) Application::Application(std::vector<std::string>&& arguments)
@@ -626,4 +624,3 @@ namespace Bloom
this->triggerShutdown(); this->triggerShutdown();
} }
} }
}

View File

@@ -31,8 +31,7 @@
#include "src/VersionNumber.hpp" #include "src/VersionNumber.hpp"
namespace Bloom
{
/** /**
* Bloom - a debug interface for embedded systems development on Linux. * Bloom - a debug interface for embedded systems development on Linux.
* *
@@ -318,4 +317,3 @@ namespace Bloom
*/ */
void onDebugSessionFinished(const Events::DebugSessionFinished& event); void onDebugSessionFinished(const Events::DebugSessionFinished& event);
}; };
}

View File

@@ -8,9 +8,9 @@
#include "src/Exceptions/InvalidConfig.hpp" #include "src/Exceptions/InvalidConfig.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
namespace Bloom::DebugServer namespace DebugServer
{ {
using namespace Bloom::Events; using namespace Events;
DebugServerComponent::DebugServerComponent(const DebugServerConfig& debugServerConfig) DebugServerComponent::DebugServerComponent(const DebugServerConfig& debugServerConfig)
: debugServerConfig(debugServerConfig) : debugServerConfig(debugServerConfig)

View File

@@ -13,7 +13,7 @@
#include "ServerInterface.hpp" #include "ServerInterface.hpp"
namespace Bloom::DebugServer namespace DebugServer
{ {
/** /**
* The DebugServer exposes the connected target to third-party debugging software such as IDEs. * The DebugServer exposes the connected target to third-party debugging software such as IDEs.

View File

@@ -11,12 +11,12 @@
#include "CommandPackets/FlashWrite.hpp" #include "CommandPackets/FlashWrite.hpp"
#include "CommandPackets/FlashDone.hpp" #include "CommandPackets/FlashDone.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb namespace DebugServer::Gdb::AvrGdb
{ {
using namespace Bloom::Exceptions; using namespace Exceptions;
using Bloom::Targets::TargetRegisterDescriptor; using Targets::TargetRegisterDescriptor;
using Bloom::Targets::TargetRegisterType; using Targets::TargetRegisterType;
AvrGdbRsp::AvrGdbRsp( AvrGdbRsp::AvrGdbRsp(
const DebugServerConfig& debugServerConfig, const DebugServerConfig& debugServerConfig,

View File

@@ -6,7 +6,7 @@
#include "src/DebugServer/Gdb/GdbRspDebugServer.hpp" #include "src/DebugServer/Gdb/GdbRspDebugServer.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb namespace DebugServer::Gdb::AvrGdb
{ {
class AvrGdbRsp: public GdbRspDebugServer class AvrGdbRsp: public GdbRspDebugServer
{ {

View File

@@ -6,14 +6,14 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::OkResponsePacket; using ResponsePackets::OkResponsePacket;
using namespace Bloom::Exceptions; using namespace Exceptions;
FlashDone::FlashDone(const RawPacket& rawPacket) FlashDone::FlashDone(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -8,7 +8,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The FlashDone class implements the structure for the "vFlashDone" packet. * The FlashDone class implements the structure for the "vFlashDone" packet.

View File

@@ -6,14 +6,14 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::OkResponsePacket; using ResponsePackets::OkResponsePacket;
using namespace Bloom::Exceptions; using namespace Exceptions;
FlashErase::FlashErase(const RawPacket& rawPacket) FlashErase::FlashErase(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -8,7 +8,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The FlashErase class implements the structure for the "vFlashErase" packet. Upon receiving this packet, the * The FlashErase class implements the structure for the "vFlashErase" packet. Upon receiving this packet, the

View File

@@ -8,14 +8,14 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::OkResponsePacket; using ResponsePackets::OkResponsePacket;
using namespace Bloom::Exceptions; using namespace Exceptions;
FlashWrite::FlashWrite(const RawPacket& rawPacket) FlashWrite::FlashWrite(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -8,7 +8,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The FlashWrite class implements the structure for the "vFlashWrite" packet. Upon receiving this packet, the * The FlashWrite class implements the structure for the "vFlashWrite" packet. Upon receiving this packet, the

View File

@@ -8,7 +8,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;

View File

@@ -8,7 +8,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The ReadMemory class implements a structure for "m" packets. Upon receiving these packets, the server is * The ReadMemory class implements a structure for "m" packets. Upon receiving these packets, the server is

View File

@@ -4,7 +4,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;

View File

@@ -4,7 +4,7 @@
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp" #include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The ReadMemoryMap class implements a structure for the "qXfer:memory-map:read::..." packet. Upon receiving this * The ReadMemoryMap class implements a structure for the "qXfer:memory-map:read::..." packet. Upon receiving this

View File

@@ -10,7 +10,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;

View File

@@ -4,7 +4,7 @@
#include "src/DebugServer/Gdb/RegisterDescriptor.hpp" #include "src/DebugServer/Gdb/RegisterDescriptor.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The ReadRegister class implements a structure for the "p" command packet. In response to this packet, the server * The ReadRegister class implements a structure for the "p" command packet. In response to this packet, the server

View File

@@ -11,7 +11,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;

View File

@@ -6,7 +6,7 @@
#include "src/DebugServer/Gdb/RegisterDescriptor.hpp" #include "src/DebugServer/Gdb/RegisterDescriptor.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The ReadRegisters class implements a structure for the "g" command packet. In response to this packet, the * The ReadRegisters class implements a structure for the "g" command packet. In response to this packet, the

View File

@@ -6,14 +6,14 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::OkResponsePacket; using ResponsePackets::OkResponsePacket;
using namespace Bloom::Exceptions; using namespace Exceptions;
WriteMemory::WriteMemory(const RawPacket& rawPacket, const TargetDescriptor& gdbTargetDescriptor) WriteMemory::WriteMemory(const RawPacket& rawPacket, const TargetDescriptor& gdbTargetDescriptor)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -8,7 +8,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The WriteMemory class implements the structure for "M" packets. Upon receiving this packet, the server is * The WriteMemory class implements the structure for "M" packets. Upon receiving this packet, the server is

View File

@@ -8,7 +8,7 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;

View File

@@ -7,7 +7,7 @@
#include "src/Targets/TargetRegister.hpp" #include "src/Targets/TargetRegister.hpp"
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets namespace DebugServer::Gdb::AvrGdb::CommandPackets
{ {
/** /**
* The WriteRegister class implements the structure for "P" packets. * The WriteRegister class implements the structure for "P" packets.

View File

@@ -5,14 +5,14 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb namespace DebugServer::Gdb::AvrGdb
{ {
using Bloom::Targets::TargetRegisterDescriptor; using Targets::TargetRegisterDescriptor;
using Bloom::Targets::TargetRegisterType; using Targets::TargetRegisterType;
using Bloom::Exceptions::Exception; using Exceptions::Exception;
TargetDescriptor::TargetDescriptor(const Bloom::Targets::TargetDescriptor& targetDescriptor) TargetDescriptor::TargetDescriptor(const Targets::TargetDescriptor& targetDescriptor)
: DebugServer::Gdb::TargetDescriptor( : DebugServer::Gdb::TargetDescriptor(
targetDescriptor, targetDescriptor,
{ {

View File

@@ -2,7 +2,7 @@
#include "src/DebugServer/Gdb/TargetDescriptor.hpp" #include "src/DebugServer/Gdb/TargetDescriptor.hpp"
namespace Bloom::DebugServer::Gdb::AvrGdb namespace DebugServer::Gdb::AvrGdb
{ {
class TargetDescriptor: public DebugServer::Gdb::TargetDescriptor class TargetDescriptor: public DebugServer::Gdb::TargetDescriptor
{ {

View File

@@ -1,6 +1,6 @@
#pragma once #pragma once
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
enum class BreakpointType: int enum class BreakpointType: int
{ {

View File

@@ -10,13 +10,13 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Bloom::Exceptions::Exception; using ::Exceptions::Exception;
ActivateInsight::ActivateInsight(Monitor&& monitorPacket) ActivateInsight::ActivateInsight(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket)) : Monitor(std::move(monitorPacket))

View File

@@ -2,7 +2,7 @@
#include "Monitor.hpp" #include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The ActivateInsight class implements a structure for the "monitor insight" GDB command. * The ActivateInsight class implements a structure for the "monitor insight" GDB command.

View File

@@ -11,17 +11,13 @@
#include "src/Services/StringService.hpp" #include "src/Services/StringService.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" namespace DebugServer::Gdb::CommandPackets
namespace Bloom::DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using Exceptions::Exception;
BloomVersion::BloomVersion(Monitor&& monitorPacket) BloomVersion::BloomVersion(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket)) : Monitor(std::move(monitorPacket))
{} {}

View File

@@ -4,7 +4,7 @@
#include "Monitor.hpp" #include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The BloomVersion class implements a structure for the "monitor version" GDB command. * The BloomVersion class implements a structure for the "monitor version" GDB command.

View File

@@ -11,16 +11,12 @@
#include "src/Services/StringService.hpp" #include "src/Services/StringService.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" namespace DebugServer::Gdb::CommandPackets
namespace Bloom::DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using Exceptions::Exception;
BloomVersionMachine::BloomVersionMachine(Monitor&& monitorPacket) BloomVersionMachine::BloomVersionMachine(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket)) : Monitor(std::move(monitorPacket))
{} {}

View File

@@ -4,7 +4,7 @@
#include "Monitor.hpp" #include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The BloomVersionMachine class implements a structure for the "monitor version machine" GDB command. * The BloomVersionMachine class implements a structure for the "monitor version machine" GDB command.

View File

@@ -9,9 +9,8 @@
#include "src/DebugServer/Gdb/Signal.hpp" #include "src/DebugServer/Gdb/Signal.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
@@ -21,8 +20,6 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
using ResponsePackets::EmptyResponsePacket; using ResponsePackets::EmptyResponsePacket;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;
void CommandPacket::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void CommandPacket::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
const auto packetString = std::string(this->data.begin(), this->data.end()); const auto packetString = std::string(this->data.begin(), this->data.end());

View File

@@ -8,7 +8,7 @@
#include "src/Services/TargetControllerService.hpp" #include "src/Services/TargetControllerService.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* GDB RSP command packets are sent to the server, from the GDB client. These packets carry instructions that the * GDB RSP command packets are sent to the server, from the GDB client. These packets carry instructions that the

View File

@@ -5,12 +5,12 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
ContinueExecution::ContinueExecution(const RawPacket& rawPacket) ContinueExecution::ContinueExecution(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -7,7 +7,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The ContinueExecution class implements a structure for "c" packets. These packets instruct the server * The ContinueExecution class implements a structure for "c" packets. These packets instruct the server

View File

@@ -7,14 +7,14 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::OkResponsePacket; using ResponsePackets::OkResponsePacket;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
Detach::Detach(const RawPacket& rawPacket) Detach::Detach(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -2,7 +2,7 @@
#include "CommandPacket.hpp" #include "CommandPacket.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
class Detach: public CommandPacket class Detach: public CommandPacket
{ {

View File

@@ -12,13 +12,14 @@
#include "src/DebugServer/Gdb/Exceptions/InvalidCommandOption.hpp" #include "src/DebugServer/Gdb/Exceptions/InvalidCommandOption.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Bloom::Exceptions::Exception;
using ::Exceptions::Exception;
using Exceptions::InvalidCommandOption; using Exceptions::InvalidCommandOption;
EepromFill::EepromFill(Monitor&& monitorPacket) EepromFill::EepromFill(Monitor&& monitorPacket)

View File

@@ -6,7 +6,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The EepromFill class implements a structure for the "monitor eeprom fill" GDB command. * The EepromFill class implements a structure for the "monitor eeprom fill" GDB command.

View File

@@ -15,13 +15,14 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;
using ::Exceptions::Exception;
GenerateSvd::GenerateSvd(Monitor&& monitorPacket) GenerateSvd::GenerateSvd(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket)) : Monitor(std::move(monitorPacket))

View File

@@ -6,7 +6,7 @@
#include "src/Targets/TargetDescriptor.hpp" #include "src/Targets/TargetDescriptor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The GenerateSvd class implements a structure for the "monitor svd" GDB command. * The GenerateSvd class implements a structure for the "monitor svd" GDB command.

View File

@@ -12,14 +12,14 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
HelpMonitorInfo::HelpMonitorInfo(Monitor&& monitorPacket) HelpMonitorInfo::HelpMonitorInfo(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket)) : Monitor(std::move(monitorPacket))

View File

@@ -4,7 +4,7 @@
#include "Monitor.hpp" #include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The HelpMonitorInfo class implements a structure for the "monitor help" GDB command. * The HelpMonitorInfo class implements a structure for the "monitor help" GDB command.

View File

@@ -7,13 +7,14 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::TargetStopped; using ResponsePackets::TargetStopped;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;
using ::Exceptions::Exception;
void InterruptExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void InterruptExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::info("Handling InterruptExecution packet"); Logger::info("Handling InterruptExecution packet");

View File

@@ -2,7 +2,7 @@
#include "CommandPacket.hpp" #include "CommandPacket.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The InterruptException class represents interrupt command packets. Upon receiving an interrupt packet, the * The InterruptException class represents interrupt command packets. Upon receiving an interrupt packet, the

View File

@@ -4,7 +4,7 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;

View File

@@ -7,7 +7,7 @@
#include "CommandPacket.hpp" #include "CommandPacket.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* This is a base class for 'qRcmd' packets - invoked by the GDB 'monitor' command. * This is a base class for 'qRcmd' packets - invoked by the GDB 'monitor' command.

View File

@@ -10,7 +10,7 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
@@ -19,7 +19,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
using ResponsePackets::OkResponsePacket; using ResponsePackets::OkResponsePacket;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
RemoveBreakpoint::RemoveBreakpoint(const RawPacket& rawPacket) RemoveBreakpoint::RemoveBreakpoint(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -9,7 +9,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The RemoveBreakpoint class implements the structure for "z" command packets. Upon receiving this command, the * The RemoveBreakpoint class implements the structure for "z" command packets. Upon receiving this command, the

View File

@@ -8,14 +8,14 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
ResetTarget::ResetTarget(Monitor&& monitorPacket) ResetTarget::ResetTarget(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket)) : Monitor(std::move(monitorPacket))

View File

@@ -4,7 +4,7 @@
#include "Monitor.hpp" #include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The ResetTarget class implements a structure for the custom reset command (triggered via the "monitor reset" * The ResetTarget class implements a structure for the custom reset command (triggered via the "monitor reset"

View File

@@ -11,7 +11,7 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
@@ -21,7 +21,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::EmptyResponsePacket; using ResponsePackets::EmptyResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
SetBreakpoint::SetBreakpoint(const RawPacket& rawPacket) SetBreakpoint::SetBreakpoint(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -9,7 +9,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The SetBreakpoint class implements the structure for "Z" command packets. Upon receiving this command, the * The SetBreakpoint class implements the structure for "Z" command packets. Upon receiving this command, the

View File

@@ -5,13 +5,13 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception; using ::Exceptions::Exception;
StepExecution::StepExecution(const RawPacket& rawPacket) StepExecution::StepExecution(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -7,7 +7,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The StepExecution class implements the structure for "s" command packets. Upon receiving this command, the * The StepExecution class implements the structure for "s" command packets. Upon receiving this command, the

View File

@@ -8,18 +8,16 @@
#include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp" #include "src/DebugServer/Gdb/ResponsePackets/ErrorResponsePacket.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"
#include "src/DebugServer/Gdb/Exceptions/ClientNotSupported.hpp" #include "src/DebugServer/Gdb/Exceptions/ClientNotSupported.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
using Services::TargetControllerService; using Services::TargetControllerService;
using ResponsePackets::SupportedFeaturesResponse; using ResponsePackets::SupportedFeaturesResponse;
using ResponsePackets::ErrorResponsePacket; using ResponsePackets::ErrorResponsePacket;
using Bloom::Exceptions::Exception; using Exceptions::ClientNotSupported;
using Gdb::Exceptions::ClientNotSupported;
SupportedFeaturesQuery::SupportedFeaturesQuery(const RawPacket& rawPacket) SupportedFeaturesQuery::SupportedFeaturesQuery(const RawPacket& rawPacket)
: CommandPacket(rawPacket) : CommandPacket(rawPacket)

View File

@@ -6,7 +6,7 @@
#include "CommandPacket.hpp" #include "CommandPacket.hpp"
#include "../Feature.hpp" #include "../Feature.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets namespace DebugServer::Gdb::CommandPackets
{ {
/** /**
* The SupportedFeaturesQuery command packet is a query from the GDB client, requesting a list of GDB features * The SupportedFeaturesQuery command packet is a query from the GDB client, requesting a list of GDB features

View File

@@ -15,10 +15,10 @@
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
#include "src/Services/StringService.hpp" #include "src/Services/StringService.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
using namespace Exceptions; using namespace Exceptions;
using namespace Bloom::Exceptions; using namespace ::Exceptions;
using ResponsePackets::ResponsePacket; using ResponsePackets::ResponsePacket;

View File

@@ -16,7 +16,7 @@
#include "src/DebugServer/Gdb/Packet.hpp" #include "src/DebugServer/Gdb/Packet.hpp"
#include "src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp" #include "src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
/** /**
* The Connection class represents an active connection between the GDB RSP server and client. * The Connection class represents an active connection between the GDB RSP server and client.

View File

@@ -2,7 +2,7 @@
#include "src/EventManager/EventManager.hpp" #include "src/EventManager/EventManager.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
DebugSession::DebugSession( DebugSession::DebugSession(
Connection&& connection, Connection&& connection,

View File

@@ -11,7 +11,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
class DebugSession class DebugSession
{ {

View File

@@ -2,7 +2,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions namespace DebugServer::Gdb::Exceptions
{ {
/** /**
* In the event that communication between the GDB RSP client and Bloom fails, a ClientCommunicationFailure * In the event that communication between the GDB RSP client and Bloom fails, a ClientCommunicationFailure
@@ -10,15 +10,15 @@ namespace Bloom::DebugServer::Gdb::Exceptions
* *
* See GdbRspDebugServer::serve() for handling code. * See GdbRspDebugServer::serve() for handling code.
*/ */
class ClientCommunicationError: public Bloom::Exceptions::Exception class ClientCommunicationError: public ::Exceptions::Exception
{ {
public: public:
explicit ClientCommunicationError(const std::string& message) explicit ClientCommunicationError(const std::string& message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit ClientCommunicationError(const char* message) explicit ClientCommunicationError(const char* message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit ClientCommunicationError() = default; explicit ClientCommunicationError() = default;

View File

@@ -2,7 +2,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions namespace DebugServer::Gdb::Exceptions
{ {
/** /**
* When a GDB RSP client unexpectedly drops the connection in the middle of an IO operation, a ClientDisconnected * When a GDB RSP client unexpectedly drops the connection in the middle of an IO operation, a ClientDisconnected
@@ -11,7 +11,7 @@ namespace Bloom::DebugServer::Gdb::Exceptions
* *
* See GdbRspDebugServer::serve() for handling code. * See GdbRspDebugServer::serve() for handling code.
*/ */
class ClientDisconnected: public Bloom::Exceptions::Exception class ClientDisconnected: public ::Exceptions::Exception
{ {
public: public:
explicit ClientDisconnected() = default; explicit ClientDisconnected() = default;

View File

@@ -2,7 +2,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions namespace DebugServer::Gdb::Exceptions
{ {
/** /**
* In the event that the GDB debug server determines that the connected client cannot be served, * In the event that the GDB debug server determines that the connected client cannot be served,
@@ -10,15 +10,15 @@ namespace Bloom::DebugServer::Gdb::Exceptions
* *
* See GdbRspDebugServer::serve() for handling code. * See GdbRspDebugServer::serve() for handling code.
*/ */
class ClientNotSupported: public Bloom::Exceptions::Exception class ClientNotSupported: public ::Exceptions::Exception
{ {
public: public:
explicit ClientNotSupported(const std::string& message) explicit ClientNotSupported(const std::string& message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit ClientNotSupported(const char* message) explicit ClientNotSupported(const char* message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit ClientNotSupported() = default; explicit ClientNotSupported() = default;

View File

@@ -2,7 +2,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions namespace DebugServer::Gdb::Exceptions
{ {
/** /**
* The GDB debug server spends most of its time in a blocking state, waiting for a new connection or for some data * The GDB debug server spends most of its time in a blocking state, waiting for a new connection or for some data
@@ -13,7 +13,7 @@ namespace Bloom::DebugServer::Gdb::Exceptions
* For more on how the GDB server implementation allows for interruptions, see the "Servicing events" section in * For more on how the GDB server implementation allows for interruptions, see the "Servicing events" section in
* src/DebugServer/README.md. * src/DebugServer/README.md.
*/ */
class DebugServerInterrupted: public Bloom::Exceptions::Exception class DebugServerInterrupted: public ::Exceptions::Exception
{ {
public: public:
explicit DebugServerInterrupted() = default; explicit DebugServerInterrupted() = default;

View File

@@ -2,7 +2,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions namespace DebugServer::Gdb::Exceptions
{ {
/** /**
* The GDB server may fail to prepare for a debug session, if an internal error occurs. One circumstance where * The GDB server may fail to prepare for a debug session, if an internal error occurs. One circumstance where
@@ -10,15 +10,15 @@ namespace Bloom::DebugServer::Gdb::Exceptions
* *
* See GdbRspDebugServer::serve() for handling code. * See GdbRspDebugServer::serve() for handling code.
*/ */
class DebugSessionInitialisationFailure: public Bloom::Exceptions::Exception class DebugSessionInitialisationFailure: public ::Exceptions::Exception
{ {
public: public:
explicit DebugSessionInitialisationFailure(const std::string& message) explicit DebugSessionInitialisationFailure(const std::string& message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit DebugSessionInitialisationFailure(const char* message) explicit DebugSessionInitialisationFailure(const char* message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit DebugSessionInitialisationFailure() = default; explicit DebugSessionInitialisationFailure() = default;

View File

@@ -2,7 +2,7 @@
#include "src/Exceptions/Exception.hpp" #include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions namespace DebugServer::Gdb::Exceptions
{ {
/** /**
* For GDB monitor commands, each command can define a set of required/optional command options. * For GDB monitor commands, each command can define a set of required/optional command options.
@@ -10,15 +10,15 @@ namespace Bloom::DebugServer::Gdb::Exceptions
* *
* This exception is typically thrown and caught within the handling of monitor commands. * This exception is typically thrown and caught within the handling of monitor commands.
*/ */
class InvalidCommandOption: public Bloom::Exceptions::Exception class InvalidCommandOption: public ::Exceptions::Exception
{ {
public: public:
explicit InvalidCommandOption(const std::string& message) explicit InvalidCommandOption(const std::string& message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit InvalidCommandOption(const char* message) explicit InvalidCommandOption(const char* message)
: Bloom::Exceptions::Exception(message) : ::Exceptions::Exception(message)
{} {}
explicit InvalidCommandOption() = default; explicit InvalidCommandOption() = default;

View File

@@ -2,7 +2,7 @@
#include "src/Helpers/BiMap.hpp" #include "src/Helpers/BiMap.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
enum class Feature: int enum class Feature: int
{ {

View File

@@ -3,7 +3,7 @@
#include "src/Helpers/YamlUtilities.hpp" #include "src/Helpers/YamlUtilities.hpp"
#include "src/Logger/Logger.hpp" #include "src/Logger/Logger.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
GdbDebugServerConfig::GdbDebugServerConfig(const DebugServerConfig& debugServerConfig) GdbDebugServerConfig::GdbDebugServerConfig(const DebugServerConfig& debugServerConfig)
: DebugServerConfig(debugServerConfig) : DebugServerConfig(debugServerConfig)

View File

@@ -2,7 +2,7 @@
#include "src/ProjectConfig.hpp" #include "src/ProjectConfig.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
/** /**
* Extending the generic DebugServerConfig struct to accommodate GDB debug server configuration parameters. * Extending the generic DebugServerConfig struct to accommodate GDB debug server configuration parameters.

View File

@@ -41,10 +41,10 @@
#include "src/Services/ProcessService.hpp" #include "src/Services/ProcessService.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
using namespace Exceptions; using namespace Exceptions;
using namespace Bloom::Exceptions; using namespace ::Exceptions;
using CommandPackets::CommandPacket; using CommandPackets::CommandPacket;

View File

@@ -26,7 +26,7 @@
#include "src/EventManager/Events/TargetExecutionStopped.hpp" #include "src/EventManager/Events/TargetExecutionStopped.hpp"
#include "src/EventManager/Events/TargetExecutionResumed.hpp" #include "src/EventManager/Events/TargetExecutionResumed.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
/** /**
* The GdbRspDebugServer is an implementation of the GDB Remote Serial Protocol. * The GdbRspDebugServer is an implementation of the GDB Remote Serial Protocol.

View File

@@ -7,7 +7,7 @@
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
using RawPacket = std::vector<unsigned char>; using RawPacket = std::vector<unsigned char>;

View File

@@ -2,7 +2,7 @@
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
/** /**
* A programming session is created upon receiving the first FlashWrite (vFlashWrite) packet from GDB. * A programming session is created upon receiving the first FlashWrite (vFlashWrite) packet from GDB.

View File

@@ -3,7 +3,7 @@
#include <cstdint> #include <cstdint>
#include <string> #include <string>
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
using GdbRegisterId = std::uint16_t; using GdbRegisterId = std::uint16_t;
@@ -60,10 +60,10 @@ namespace std
* class). * class).
*/ */
template<> template<>
class hash<Bloom::DebugServer::Gdb::RegisterDescriptor> class hash<DebugServer::Gdb::RegisterDescriptor>
{ {
public: public:
std::size_t operator () (const Bloom::DebugServer::Gdb::RegisterDescriptor& descriptor) const { std::size_t operator () (const DebugServer::Gdb::RegisterDescriptor& descriptor) const {
// We use the GDB register number as the hash, as it is unique to the register. // We use the GDB register number as the hash, as it is unique to the register.
return static_cast<size_t>(descriptor.id); return static_cast<size_t>(descriptor.id);
} }

View File

@@ -2,7 +2,7 @@
#include "ResponsePacket.hpp" #include "ResponsePacket.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
/** /**
* Empty response packet expected by the GDB client, in response to certain commands. * Empty response packet expected by the GDB client, in response to certain commands.

View File

@@ -2,7 +2,7 @@
#include "ResponsePacket.hpp" #include "ResponsePacket.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
/** /**
* Error response packet expected by the GDB client, to indicate an error, in response to certain commands. * Error response packet expected by the GDB client, to indicate an error, in response to certain commands.

View File

@@ -2,7 +2,7 @@
#include "ResponsePacket.hpp" #include "ResponsePacket.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
/** /**
* OK response packet expected by the GDB client, in response to certain commands. * OK response packet expected by the GDB client, in response to certain commands.

View File

@@ -5,7 +5,7 @@
#include "src/DebugServer/Gdb/Packet.hpp" #include "src/DebugServer/Gdb/Packet.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
/** /**
* Upon receiving a CommandPacket from the connected GDB RSP client, the server is expected to respond with a * Upon receiving a CommandPacket from the connected GDB RSP client, the server is expected to respond with a

View File

@@ -1,6 +1,6 @@
#include "SupportedFeaturesResponse.hpp" #include "SupportedFeaturesResponse.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
SupportedFeaturesResponse::SupportedFeaturesResponse( SupportedFeaturesResponse::SupportedFeaturesResponse(
const std::set<std::pair<Feature, std::optional<std::string>>>& supportedFeatures const std::set<std::pair<Feature, std::optional<std::string>>>& supportedFeatures

View File

@@ -8,7 +8,7 @@
#include "src/DebugServer/Gdb/Feature.hpp" #include "src/DebugServer/Gdb/Feature.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
/** /**
* The SupportedFeaturesResponse class implements the response packet structure for the "qSupported" command. * The SupportedFeaturesResponse class implements the response packet structure for the "qSupported" command.

View File

@@ -9,7 +9,7 @@
#include "src/Services/StringService.hpp" #include "src/Services/StringService.hpp"
namespace Bloom::DebugServer::Gdb::ResponsePackets namespace DebugServer::Gdb::ResponsePackets
{ {
/** /**
* The TargetStopped class implements the response packet structure for any commands that expect a "StopReply" * The TargetStopped class implements the response packet structure for any commands that expect a "StopReply"

View File

@@ -1,6 +1,6 @@
#pragma once #pragma once
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
enum class Signal: unsigned char enum class Signal: unsigned char
{ {

View File

@@ -2,7 +2,7 @@
#include "src/Helpers/BiMap.hpp" #include "src/Helpers/BiMap.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
enum class StopReason: int enum class StopReason: int
{ {

View File

@@ -1,6 +1,6 @@
#include "TargetDescriptor.hpp" #include "TargetDescriptor.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
TargetDescriptor::TargetDescriptor( TargetDescriptor::TargetDescriptor(
const Targets::TargetDescriptor& targetDescriptor, const Targets::TargetDescriptor& targetDescriptor,

View File

@@ -13,7 +13,7 @@
#include "RegisterDescriptor.hpp" #include "RegisterDescriptor.hpp"
namespace Bloom::DebugServer::Gdb namespace DebugServer::Gdb
{ {
/** /**
* GDB target descriptor. * GDB target descriptor.

View File

@@ -2,7 +2,7 @@
#include <string> #include <string>
namespace Bloom::DebugServer namespace DebugServer
{ {
/** /**
* Every debug server must implement this interface. * Every debug server must implement this interface.

View File

@@ -10,8 +10,6 @@
#include "TargetInterfaces/Microchip/AVR/AvrIspInterface.hpp" #include "TargetInterfaces/Microchip/AVR/AvrIspInterface.hpp"
namespace Bloom
{
/** /**
* A debug tool can be any device that provides access to the connected target. Debug tools are usually connected * A debug tool can be any device that provides access to the connected target. Debug tools are usually connected
* to the host machine via USB. * to the host machine via USB.
@@ -109,4 +107,3 @@ namespace Bloom
private: private:
bool initialised = false; bool initialised = false;
}; };
}

View File

@@ -1,6 +1,6 @@
#include "AtmelIce.hpp" #include "AtmelIce.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
AtmelIce::AtmelIce() AtmelIce::AtmelIce()
: EdbgDevice( : EdbgDevice(

View File

@@ -5,7 +5,7 @@
#include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp" #include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
/** /**
* The Atmel-ICE device is an EDBG (Embedded Debugger) device. * The Atmel-ICE device is an EDBG (Embedded Debugger) device.

View File

@@ -1,6 +1,6 @@
#include "CuriosityNano.hpp" #include "CuriosityNano.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
CuriosityNano::CuriosityNano() CuriosityNano::CuriosityNano()
: EdbgDevice( : EdbgDevice(

View File

@@ -5,7 +5,7 @@
#include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp" #include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
/** /**
* The Curiosity Nano is an evaluation board featuring an on-board debugger. The debugger is EDBG-based. * The Curiosity Nano is an evaluation board featuring an on-board debugger. The debugger is EDBG-based.

View File

@@ -6,10 +6,10 @@
#include "src/TargetController/Exceptions/DeviceFailure.hpp" #include "src/TargetController/Exceptions/DeviceFailure.hpp"
#include "src/TargetController/Exceptions/DeviceInitializationFailure.hpp" #include "src/TargetController/Exceptions/DeviceInitializationFailure.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
using namespace Protocols::CmsisDap::Edbg::Avr; using namespace Protocols::CmsisDap::Edbg::Avr;
using namespace Bloom::Exceptions; using namespace Exceptions;
using Protocols::CmsisDap::Edbg::EdbgInterface; using Protocols::CmsisDap::Edbg::EdbgInterface;
using Protocols::CmsisDap::Edbg::EdbgTargetPowerManagementInterface; using Protocols::CmsisDap::Edbg::EdbgTargetPowerManagementInterface;

View File

@@ -12,7 +12,7 @@
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvrIspInterface.hpp" #include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvrIspInterface.hpp"
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgTargetPowerManagementInterface.hpp" #include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgTargetPowerManagementInterface.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
/** /**
* Microchip EDBG (Embedded Debugger) devices implement the CMSIS-DAP interface. As well as the CMSIS-DAP protocol, * Microchip EDBG (Embedded Debugger) devices implement the CMSIS-DAP interface. As well as the CMSIS-DAP protocol,

View File

@@ -1,6 +1,6 @@
#include "JtagIce3.hpp" #include "JtagIce3.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
JtagIce3::JtagIce3() JtagIce3::JtagIce3()
: EdbgDevice( : EdbgDevice(

View File

@@ -5,7 +5,7 @@
#include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp" #include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
/** /**
* The JTAGICE3, from firmware version 3.x+, is an EDBG device. * The JTAGICE3, from firmware version 3.x+, is an EDBG device.

View File

@@ -3,7 +3,7 @@
#include "src/TargetController/Exceptions/DeviceNotFound.hpp" #include "src/TargetController/Exceptions/DeviceNotFound.hpp"
#include "src/Services/PathService.hpp" #include "src/Services/PathService.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
MplabPickit4::MplabPickit4() MplabPickit4::MplabPickit4()
: EdbgDevice( : EdbgDevice(

View File

@@ -5,7 +5,7 @@
#include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp" #include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp"
namespace Bloom::DebugToolDrivers namespace DebugToolDrivers
{ {
/** /**
* Like the MPLAB Snap, the PICkit 4 is a hybrid device. It can present itself as an EDBG (Embedded Debugger) * Like the MPLAB Snap, the PICkit 4 is a hybrid device. It can present itself as an EDBG (Embedded Debugger)

Some files were not shown because too many files have changed in this diff Show More