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

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

View File

@@ -2,7 +2,7 @@
#include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
namespace DebugServer::Gdb::CommandPackets
{
/**
* 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/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
namespace DebugServer::Gdb::CommandPackets
{
using Services::TargetControllerService;
using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::ResponsePacket;
using Exceptions::Exception;
BloomVersion::BloomVersion(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket))
{}

View File

@@ -4,7 +4,7 @@
#include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
namespace DebugServer::Gdb::CommandPackets
{
/**
* 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/Logger/Logger.hpp"
#include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
namespace DebugServer::Gdb::CommandPackets
{
using Services::TargetControllerService;
using ResponsePackets::ResponsePacket;
using Exceptions::Exception;
BloomVersionMachine::BloomVersionMachine(Monitor&& monitorPacket)
: Monitor(std::move(monitorPacket))
{}

View File

@@ -4,7 +4,7 @@
#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.

View File

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

View File

@@ -8,7 +8,7 @@
#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

View File

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

View File

@@ -7,7 +7,7 @@
#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

View File

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

View File

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

View File

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

View File

@@ -6,7 +6,7 @@
#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.

View File

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

View File

@@ -6,7 +6,7 @@
#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.

View File

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

View File

@@ -4,7 +4,7 @@
#include "Monitor.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
namespace DebugServer::Gdb::CommandPackets
{
/**
* 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/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::CommandPackets
namespace DebugServer::Gdb::CommandPackets
{
using Services::TargetControllerService;
using ResponsePackets::TargetStopped;
using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;
using ::Exceptions::Exception;
void InterruptExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::info("Handling InterruptExecution packet");

View File

@@ -2,7 +2,7 @@
#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

View File

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

View File

@@ -7,7 +7,7 @@
#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.

View File

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

View File

@@ -9,7 +9,7 @@
#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

View File

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

View File

@@ -4,7 +4,7 @@
#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"

View File

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

View File

@@ -9,7 +9,7 @@
#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

View File

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

View File

@@ -7,7 +7,7 @@
#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

View File

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

View File

@@ -6,7 +6,7 @@
#include "CommandPacket.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