[Lldb-commits] [lldb] r156898 - /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
gclayton at apple.com
Tue May 15 19:48:06 PDT 2012
Date: Tue May 15 21:48:06 2012
New Revision: 156898
Make sure that our thread list can't get out of date like was happening before Jims fix in revision 156894.
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Tue May 15 21:48:06 2012
@@ -2497,6 +2497,12 @@
StateType stop_state = process->GetGDBRemote().SendContinuePacketAndWaitForResponse (process, continue_cstr, continue_cstr_len, response);
+ // We need to immediately clear the thread ID list so we are sure to get a valid list of threads.
+ // The thread ID list might be contained within the "response", or the stop reply packet that
+ // caused the stop. So clear it now before we give the stop reply packet to the process
+ // using the process->SetLastStopPacket()...
+ process->ClearThreadIDList ();
More information about the lldb-commits