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:
@@ -276,7 +276,11 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
void Avr8::run() {
|
||||
void Avr8::run(std::optional<TargetMemoryAddress> toAddress) {
|
||||
if (toAddress.has_value()) {
|
||||
return this->avr8DebugInterface->runTo(*toAddress);
|
||||
}
|
||||
|
||||
this->avr8DebugInterface->run();
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
|
||||
TargetDescriptor getDescriptor() override;
|
||||
|
||||
void run() override;
|
||||
void run(std::optional<TargetMemoryAddress> toAddress = std::nullopt) override;
|
||||
void stop() override;
|
||||
void step() override;
|
||||
void reset() override;
|
||||
|
||||
@@ -179,8 +179,10 @@ namespace Bloom::Targets
|
||||
|
||||
/**
|
||||
* Should resume execution on the target.
|
||||
*
|
||||
* @param toAddress
|
||||
*/
|
||||
virtual void run() = 0;
|
||||
virtual void run(std::optional<TargetMemoryAddress> toAddress = std::nullopt) = 0;
|
||||
|
||||
/**
|
||||
* Should halt execution on the target.
|
||||
|
||||
Reference in New Issue
Block a user