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

@@ -295,7 +295,10 @@ namespace Bloom::DebugServer::Gdb
}
void GdbRspDebugServer::onTargetControllerStateReported(const Events::TargetControllerStateReported& event) {
if (event.state == TargetControllerState::SUSPENDED && this->activeDebugSession.has_value()) {
if (
event.state == TargetController::TargetControllerState::SUSPENDED
&& this->activeDebugSession.has_value()
) {
Logger::warning("Terminating debug session - TargetController suspended unexpectedly");
this->terminateActiveDebugSession();
}