Moved reserveSteppingBreakpoint AVR8 config param to more generic TargetConfig struct
This commit is contained in:
@@ -203,6 +203,12 @@ TargetConfig::TargetConfig(const YAML::Node& targetNode) {
|
|||||||
this->programMemoryCache = targetNode["programMemoryCache"].as<bool>(this->programMemoryCache);
|
this->programMemoryCache = targetNode["programMemoryCache"].as<bool>(this->programMemoryCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (targetNode["reserveSteppingBreakpoint"]) {
|
||||||
|
this->reserveSteppingBreakpoint = targetNode["reserveSteppingBreakpoint"].as<bool>(
|
||||||
|
this->reserveSteppingBreakpoint
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this->targetNode = targetNode;
|
this->targetNode = targetNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,11 @@ struct TargetConfig
|
|||||||
*/
|
*/
|
||||||
bool programMemoryCache = true;
|
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
|
* For extracting any target specific configuration. See Avr8TargetConfig::Avr8TargetConfig() and
|
||||||
* Avr8::preActivationConfigure() for an example of this.
|
* Avr8::preActivationConfigure() for an example of this.
|
||||||
|
|||||||
@@ -49,11 +49,5 @@ namespace Targets::Microchip::Avr8
|
|||||||
this->preserveEeprom
|
this->preserveEeprom
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetNode["reserveSteppingBreakpoint"]) {
|
|
||||||
this->reserveSteppingBreakpoint = targetNode["reserveSteppingBreakpoint"].as<bool>(
|
|
||||||
this->reserveSteppingBreakpoint
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,11 +79,6 @@ namespace Targets::Microchip::Avr8
|
|||||||
*/
|
*/
|
||||||
bool preserveEeprom = true;
|
bool preserveEeprom = true;
|
||||||
|
|
||||||
/**
|
|
||||||
* Determines if Bloom will reserve a single hardware breakpoint for stepping operations.
|
|
||||||
*/
|
|
||||||
bool reserveSteppingBreakpoint = true;
|
|
||||||
|
|
||||||
explicit Avr8TargetConfig(const TargetConfig& targetConfig);
|
explicit Avr8TargetConfig(const TargetConfig& targetConfig);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user