Moved responsibility of stopping and resetting the target at the beginning of the debug session to the DebugServer.

This commit is contained in:
Nav
2022-04-30 16:22:51 +01:00
parent 8fa8cf48d9
commit 226b663aea
2 changed files with 3 additions and 6 deletions

View File

@@ -173,6 +173,9 @@ namespace Bloom::DebugServer::Gdb
throw DebugSessionAborted("TargetController not in service"); throw DebugSessionAborted("TargetController not in service");
} }
} }
this->targetControllerConsole.stopTargetExecution();
this->targetControllerConsole.resetTarget();
} }
auto commandPacket = this->waitForCommandPacket(); auto commandPacket = this->waitForCommandPacket();

View File

@@ -717,12 +717,6 @@ namespace Bloom::TargetController
this->resume(); this->resume();
this->fireTargetEvents(); this->fireTargetEvents();
} }
this->resetTarget();
if (this->target->getState() != TargetState::STOPPED) {
this->target->stop();
}
} }
void TargetControllerComponent::onDebugSessionFinishedEvent(const DebugSessionFinished&) { void TargetControllerComponent::onDebugSessionFinishedEvent(const DebugSessionFinished&) {