Fixed dangling reference bug that was resulting in invalid mapped_io segment in EDBG session object.
This commit is contained in:
@@ -114,7 +114,7 @@ namespace Targets::Microchip::Avr8
|
|||||||
}
|
}
|
||||||
|
|
||||||
const TargetDescription::MemorySegment& TargetDescriptionFile::getIoMemorySegment() const {
|
const TargetDescription::MemorySegment& TargetDescriptionFile::getIoMemorySegment() const {
|
||||||
const auto addressSpace = this->getIoAddressSpace();
|
const auto& addressSpace = this->getIoAddressSpace();
|
||||||
const auto segment = addressSpace.tryGetMemorySegment("io");
|
const auto segment = addressSpace.tryGetMemorySegment("io");
|
||||||
return segment.has_value()
|
return segment.has_value()
|
||||||
? segment->get()
|
? segment->get()
|
||||||
|
|||||||
Reference in New Issue
Block a user