Moved reserveSteppingBreakpoint AVR8 config param to more generic TargetConfig struct

This commit is contained in:
Nav
2024-10-06 17:09:06 +01:00
parent d21afc47f4
commit 7fc1145d4b
4 changed files with 11 additions and 11 deletions

View File

@@ -203,6 +203,12 @@ TargetConfig::TargetConfig(const YAML::Node& targetNode) {
this->programMemoryCache = targetNode["programMemoryCache"].as<bool>(this->programMemoryCache);
}
if (targetNode["reserveSteppingBreakpoint"]) {
this->reserveSteppingBreakpoint = targetNode["reserveSteppingBreakpoint"].as<bool>(
this->reserveSteppingBreakpoint
);
}
this->targetNode = targetNode;
}

View File

@@ -69,6 +69,11 @@ struct TargetConfig
*/
bool programMemoryCache = true;
/**
* Determines if Bloom will reserve a single hardware breakpoint for stepping operations.
*/
bool reserveSteppingBreakpoint = true;
/**
* For extracting any target specific configuration. See Avr8TargetConfig::Avr8TargetConfig() and
* Avr8::preActivationConfigure() for an example of this.

View File

@@ -49,11 +49,5 @@ namespace Targets::Microchip::Avr8
this->preserveEeprom
);
}
if (targetNode["reserveSteppingBreakpoint"]) {
this->reserveSteppingBreakpoint = targetNode["reserveSteppingBreakpoint"].as<bool>(
this->reserveSteppingBreakpoint
);
}
}
}

View File

@@ -79,11 +79,6 @@ namespace Targets::Microchip::Avr8
*/
bool preserveEeprom = true;
/**
* Determines if Bloom will reserve a single hardware breakpoint for stepping operations.
*/
bool reserveSteppingBreakpoint = true;
explicit Avr8TargetConfig(const TargetConfig& targetConfig);
};
}