From 1bb099f00790aff50c185251c50b15700604f776 Mon Sep 17 00:00:00 2001 From: Nav Date: Fri, 25 Mar 2022 00:06:56 +0000 Subject: [PATCH] Fixed AVR GDB target descriptor initialisation --- src/DebugServers/GdbRsp/AvrGdb/AvrGdbRsp.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DebugServers/GdbRsp/AvrGdb/AvrGdbRsp.hpp b/src/DebugServers/GdbRsp/AvrGdb/AvrGdbRsp.hpp index 7f2e8f62..861c338b 100644 --- a/src/DebugServers/GdbRsp/AvrGdb/AvrGdbRsp.hpp +++ b/src/DebugServers/GdbRsp/AvrGdb/AvrGdbRsp.hpp @@ -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 gdbTargetDescriptor; }; }