Moved TargetController components into new 'TargetController' namespace.

This commit is contained in:
Nav
2022-04-09 15:57:24 +01:00
parent 0a537dcf90
commit 8be1446e72
55 changed files with 134 additions and 39 deletions

View File

@@ -13,6 +13,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::ResponsePacket;
using ResponsePackets::OkResponsePacket;
using ResponsePackets::TargetStopped;

View File

@@ -46,6 +46,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
*
* @param targetControllerConsole
*/
virtual void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole);
virtual void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
);
};
}

View File

@@ -7,6 +7,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;

View File

@@ -26,6 +26,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit ContinueExecution(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -9,6 +9,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::TargetStopped;
using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;

View File

@@ -17,6 +17,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
public:
explicit InterruptExecution(const RawPacketType& rawPacket): CommandPacket(rawPacket) {}
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -6,6 +6,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::EmptyResponsePacket;
Monitor::Monitor(const RawPacketType& rawPacket)

View File

@@ -19,6 +19,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit Monitor(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -9,6 +9,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using Targets::TargetRegister;
using Targets::TargetRegisterDescriptors;

View File

@@ -27,6 +27,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit ReadRegisters(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -12,6 +12,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using Targets::TargetBreakpoint;
using ResponsePackets::OkResponsePacket;

View File

@@ -28,6 +28,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit RemoveBreakpoint(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -8,6 +8,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::ErrorResponsePacket;
using ResponsePackets::ResponsePacket;

View File

@@ -17,6 +17,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
public:
explicit ResetTarget(Monitor&& monitorPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -12,6 +12,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using Targets::TargetBreakpoint;
using ResponsePackets::OkResponsePacket;

View File

@@ -28,6 +28,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit SetBreakpoint(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -7,6 +7,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::ErrorResponsePacket;
using Exceptions::Exception;

View File

@@ -21,6 +21,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit StepExecution(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}

View File

@@ -13,6 +13,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using ResponsePackets::SupportedFeaturesResponse;
using ResponsePackets::ErrorResponsePacket;

View File

@@ -32,7 +32,10 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
return this->supportedFeatures;
}
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
private:
std::set<Feature> supportedFeatures;

View File

@@ -11,6 +11,8 @@
namespace Bloom::DebugServer::Gdb::CommandPackets
{
using TargetController::TargetControllerConsole;
using Targets::TargetRegister;
using Targets::TargetRegisterDescriptors;

View File

@@ -19,6 +19,9 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
explicit WriteRegister(const RawPacketType& rawPacket);
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
void handle(
DebugSession& debugSession,
TargetController::TargetControllerConsole& targetControllerConsole
) override;
};
}