From 31b41ca7a3361785eae4e7a9b0e24315c7715deb Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Mon, 6 Mar 2023 18:50:27 +0800 Subject: [PATCH] fixed 5e5689a from https://gitee.com/xwx1135370/third_party_llvm-project_Nikolai/pulls/168 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 c279f9368210..1bd63eb83416 100644 --- a/lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp +++ b/lldb/source/Plugins/Platform/HOS/PlatformHOS.cpp @@ -347,6 +347,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