[Lldb-commits] [lldb] r156898 - /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Greg Clayton
gclayton at apple.com
Tue May 15 19:48:06 PDT 2012
Author: gclayton
Date: Tue May 15 21:48:06 2012
New Revision: 156898
URL: http://llvm.org/viewvc/llvm-project?rev=156898&view=rev
Log:
Make sure that our thread list can't get out of date like was happening before Jims fix in revision 156894.
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=156898&r1=156897&r2=156898&view=diff
==============================================================================
--- 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 @@
StringExtractorGDBRemote response;
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 ();
+
switch (stop_state)
{
case eStateStopped:
More information about the lldb-commits
mailing list