Fixed AVR GDB target descriptor initialisation

This commit is contained in:
Nav
2022-03-25 00:06:56 +00:00
parent 0a9e00aad9
commit 1bb099f007

View File

@@ -42,10 +42,10 @@ namespace Bloom::DebugServers::Gdb::AvrGdb
void init() override;
const Gdb::TargetDescriptor& getGdbTargetDescriptor() override {
return this->gdbTargetDescriptor;
return this->gdbTargetDescriptor.value();
}
private:
TargetDescriptor gdbTargetDescriptor;
std::optional<TargetDescriptor> gdbTargetDescriptor;
};
}