Moved responsibility of stopping and resetting the target at the beginning of the debug session to the DebugServer.
This commit is contained in:
@@ -173,6 +173,9 @@ namespace Bloom::DebugServer::Gdb
|
||||
throw DebugSessionAborted("TargetController not in service");
|
||||
}
|
||||
}
|
||||
|
||||
this->targetControllerConsole.stopTargetExecution();
|
||||
this->targetControllerConsole.resetTarget();
|
||||
}
|
||||
|
||||
auto commandPacket = this->waitForCommandPacket();
|
||||
|
||||
@@ -717,12 +717,6 @@ namespace Bloom::TargetController
|
||||
this->resume();
|
||||
this->fireTargetEvents();
|
||||
}
|
||||
|
||||
this->resetTarget();
|
||||
|
||||
if (this->target->getState() != TargetState::STOPPED) {
|
||||
this->target->stop();
|
||||
}
|
||||
}
|
||||
|
||||
void TargetControllerComponent::onDebugSessionFinishedEvent(const DebugSessionFinished&) {
|
||||
|
||||
Reference in New Issue
Block a user