From 5e5689a4691aa94ae89a1369d185d319afe74124 Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Mon, 6 Mar 2023 18:50:27 +0800 Subject: [PATCH] Description Fix the forward information and executing the platform disconnect or detach are still not deleted. Issue https://gitee.com/openharmony/third_party_llvm-project/issues/I6K6CM Test 1. LLLDB command line debugging 2. Debugging Using the DevEco Signed-off-by: xwx1135370 --- lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp b/lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp index 3483223ec250..b295cdb9d2e5 100644 --- a/lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp +++ b/lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp @@ -362,6 +362,9 @@ Status PlatformHOS::DisconnectRemote() { if (error.Success()) { m_device_id.clear(); m_sdk_version = 0; + if (m_remote_platform_sp) { + m_remote_platform_sp = nullptr; + } } return error; } -- Gitee