llvm-project/lldb/source/Plugins/OperatingSystem/Darwin-Kernel
Greg Clayton 9fc13556b4 Trying to solve our disappearing thread issues by making thread list updates safer.
The current ProcessGDBRemote function that updates the threads could end up with an empty list if any other thread had the sequence mutex. We now don't clear the thread list when we can't access it, and we also have changed how lldb_private::Process handles the return code from the:

virtual bool
Process::UpdateThreadList (lldb_private::ThreadList &old_thread_list, 
                       	   lldb_private::ThreadList &new_thread_list) = 0;

A bool is now returned to indicate if the list was actually updated or not and the lldb_private::Process class will only update the stop ID of the validity of the thread list if "true" is returned.

The ProcessGDBRemote also got an extra assertion that will hopefully assert when running debug builds so we can find the source of this issue.

llvm-svn: 154365
2012-04-10 00:18:59 +00:00
..
Makefile build: Add the Darwin-Kernel Makefile. 2011-10-31 23:38:34 +00:00
OperatingSystemDarwinKernel.cpp Trying to solve our disappearing thread issues by making thread list updates safer. 2012-04-10 00:18:59 +00:00
OperatingSystemDarwinKernel.h Trying to solve our disappearing thread issues by making thread list updates safer. 2012-04-10 00:18:59 +00:00