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");
}
}
this->targetControllerConsole.stopTargetExecution();
this->targetControllerConsole.resetTarget();
}
auto commandPacket = this->waitForCommandPacket();