From e18a9bad19d5ab505eaf3d5ee6b133d8e19bfdfc Mon Sep 17 00:00:00 2001 From: Nav Date: Fri, 25 Mar 2022 00:17:28 +0000 Subject: [PATCH] Removed invalid copy-constructor call for GdbRspDebugServer::activeDebugSession member --- src/DebugServers/GdbRsp/GdbRspDebugServer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DebugServers/GdbRsp/GdbRspDebugServer.cpp b/src/DebugServers/GdbRsp/GdbRspDebugServer.cpp index 1f997ba2..815b8f70 100644 --- a/src/DebugServers/GdbRsp/GdbRspDebugServer.cpp +++ b/src/DebugServers/GdbRsp/GdbRspDebugServer.cpp @@ -128,7 +128,9 @@ namespace Bloom::DebugServers::Gdb connection->accept(this->serverSocketFileDescriptor); Logger::info("Accepted GDP RSP connection from " + connection->getIpAddress()); - this->activeDebugSession = DebugSession(connection.value(), this->getGdbTargetDescriptor()); + this->activeDebugSession.emplace( + DebugSession(connection.value(), this->getGdbTargetDescriptor()) + ); EventManager::triggerEvent(std::make_shared()); /*