Preparation for support for the GDB vCont command packet
Also fixed a bug in the `StepExecution` and `ContinueExecution` constructors, where the from address wasn't being extracted properly
This commit is contained in:
@@ -126,11 +126,18 @@ namespace Bloom::Services
|
||||
);
|
||||
}
|
||||
|
||||
void TargetControllerService::continueTargetExecution(std::optional<TargetProgramCounter> fromAddress) const {
|
||||
void TargetControllerService::continueTargetExecution(
|
||||
std::optional<TargetMemoryAddress> fromAddress,
|
||||
std::optional<Targets::TargetMemoryAddress> toAddress
|
||||
) const {
|
||||
auto resumeExecutionCommand = std::make_unique<ResumeTargetExecution>();
|
||||
|
||||
if (fromAddress.has_value()) {
|
||||
resumeExecutionCommand->fromProgramCounter = fromAddress.value();
|
||||
resumeExecutionCommand->fromAddress = fromAddress.value();
|
||||
}
|
||||
|
||||
if (toAddress.has_value()) {
|
||||
resumeExecutionCommand->toAddress = toAddress.value();
|
||||
}
|
||||
|
||||
this->commandManager.sendCommandAndWaitForResponse(
|
||||
|
||||
@@ -83,7 +83,10 @@ namespace Bloom::Services
|
||||
*
|
||||
* @param fromAddress
|
||||
*/
|
||||
void continueTargetExecution(std::optional<Targets::TargetProgramCounter> fromAddress) const;
|
||||
void continueTargetExecution(
|
||||
std::optional<Targets::TargetMemoryAddress> fromAddress,
|
||||
std::optional<Targets::TargetMemoryAddress> toAddress
|
||||
) const;
|
||||
|
||||
/**
|
||||
* Requests the TargetController to step execution on the target.
|
||||
|
||||
Reference in New Issue
Block a user