From 8379068941f08e89822c3245369ed52c45bc8a5e Mon Sep 17 00:00:00 2001 From: Oleksiy Vyalov Date: Fri, 6 Feb 2015 19:56:33 +0000 Subject: [PATCH] Make lldb-platform to clear m_process_launch_info when hanlding qProcessInfo request - otherwise subsequent process launches will reuse data from previous launch. llvm-svn: 228430 --- .../Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index 1859260c2e1e..dd920c0df0ca 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -1452,6 +1452,7 @@ GDBRemoteCommunicationServer::Handle_qProcessInfo (StringExtractorGDBRemote &pac else if (m_is_platform) { pid = m_process_launch_info.GetProcessID (); + m_process_launch_info.Clear (); } else return SendUnimplementedResponse (packet.GetStringRef ().c_str ());