[Lldb-commits] [lldb] r228430 - Make lldb-platform to clear m_process_launch_info when hanlding qProcessInfo request - otherwise subsequent process launches will reuse data from previous launch.

Oleksiy Vyalov ovyalov at google.com
Fri Feb 6 11:56:33 PST 2015


Author: ovyalov
Date: Fri Feb  6 13:56:33 2015
New Revision: 228430

URL: http://llvm.org/viewvc/llvm-project?rev=228430&view=rev
Log:
Make lldb-platform to clear m_process_launch_info when hanlding qProcessInfo request - otherwise subsequent process launches will reuse data from previous launch.


Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp?rev=228430&r1=228429&r2=228430&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp Fri Feb  6 13:56:33 2015
@@ -1452,6 +1452,7 @@ GDBRemoteCommunicationServer::Handle_qPr
     else if (m_is_platform)
     {
         pid = m_process_launch_info.GetProcessID ();
+        m_process_launch_info.Clear ();
     }
     else
         return SendUnimplementedResponse (packet.GetStringRef ().c_str ());





More information about the lldb-commits mailing list