Sending target parameters to the debug tool before activation, for AVR8 targets
This commit is contained in:
@@ -483,6 +483,21 @@ TargetParameters& Avr8::getTargetParameters() {
|
|||||||
return this->targetParameters.value();
|
return this->targetParameters.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Avr8::activate() {
|
||||||
|
if (this->isActivated()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this->avr8Interface->init();
|
||||||
|
|
||||||
|
if (this->targetDescriptionFile.has_value()) {
|
||||||
|
this->avr8Interface->setTargetParameters(this->getTargetParameters());
|
||||||
|
}
|
||||||
|
|
||||||
|
this->avr8Interface->activate();
|
||||||
|
this->activated = true;
|
||||||
|
}
|
||||||
|
|
||||||
std::unique_ptr<Targets::Target> Avr8::promote() {
|
std::unique_ptr<Targets::Target> Avr8::promote() {
|
||||||
std::unique_ptr<Targets::Target> promoted = nullptr;
|
std::unique_ptr<Targets::Target> promoted = nullptr;
|
||||||
|
|
||||||
@@ -513,16 +528,6 @@ std::unique_ptr<Targets::Target> Avr8::promote() {
|
|||||||
return promoted;
|
return promoted;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Avr8::activate() {
|
|
||||||
if (this->isActivated()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this->avr8Interface->init();
|
|
||||||
this->avr8Interface->activate();
|
|
||||||
this->activated = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Avr8::deactivate() {
|
void Avr8::deactivate() {
|
||||||
try {
|
try {
|
||||||
this->avr8Interface->deactivate();
|
this->avr8Interface->deactivate();
|
||||||
|
|||||||
Reference in New Issue
Block a user