Dropped automatic resuming of target execution at the end of debug sessions
This commit is contained in:
@@ -282,10 +282,6 @@ namespace TargetController
|
||||
std::bind(&TargetControllerComponent::onShutdownTargetControllerEvent, this, std::placeholders::_1)
|
||||
);
|
||||
|
||||
this->eventListener->registerCallbackForEventType<Events::DebugSessionFinished>(
|
||||
std::bind(&TargetControllerComponent::onDebugSessionFinishedEvent, this, std::placeholders::_1)
|
||||
);
|
||||
|
||||
this->acquireHardware();
|
||||
|
||||
this->targetState = std::make_unique<TargetState>(
|
||||
@@ -1193,17 +1189,6 @@ namespace TargetController
|
||||
this->shutdown();
|
||||
}
|
||||
|
||||
void TargetControllerComponent::onDebugSessionFinishedEvent(const DebugSessionFinished&) {
|
||||
if (this->state != TargetControllerState::ACTIVE) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->target->getExecutionState() != TargetExecutionState::RUNNING) {
|
||||
this->target->run(std::nullopt);
|
||||
this->refreshExecutionState();
|
||||
}
|
||||
}
|
||||
|
||||
std::unique_ptr<AtomicSessionId> TargetControllerComponent::handleStartAtomicSession(StartAtomicSession& command) {
|
||||
this->startAtomicSession();
|
||||
return std::make_unique<AtomicSessionId>(this->activeAtomicSession->id);
|
||||
|
||||
@@ -348,13 +348,6 @@ namespace TargetController
|
||||
*/
|
||||
void onShutdownTargetControllerEvent(const Events::ShutdownTargetController& event);
|
||||
|
||||
/**
|
||||
* Will simply kick off execution on the target.
|
||||
*
|
||||
* @param event
|
||||
*/
|
||||
void onDebugSessionFinishedEvent(const Events::DebugSessionFinished& event);
|
||||
|
||||
// Command handlers
|
||||
std::unique_ptr<Responses::AtomicSessionId> handleStartAtomicSession(Commands::StartAtomicSession& command);
|
||||
std::unique_ptr<Responses::Response> handleEndAtomicSession(Commands::EndAtomicSession& command);
|
||||
|
||||
Reference in New Issue
Block a user