diff options
author | Greg Clayton <gclayton@apple.com> | 2016-06-10 23:23:34 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-06-10 23:23:34 +0000 |
commit | 88f86b60ca808b2e7e48a1ab07a97842fb380f66 (patch) | |
tree | baaad02fa00f28b86d5932c84e4789d4cd03a249 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | ff2addf703390fb51df70d6e173973e956ff6c0c (diff) | |
download | bcm5719-llvm-88f86b60ca808b2e7e48a1ab07a97842fb380f66.tar.gz bcm5719-llvm-88f86b60ca808b2e7e48a1ab07a97842fb380f66.zip |
On MacOSX, the threads can appear out of order at times depending on the order in which the kernel returns thread IDs to debugserver. To avoid thread lists changing order between stops, ProcessGDBRemote now makes sure the thread list stays sorted by thread index ID.
<rdar://problem/25501013>
llvm-svn: 272444
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 60dbcb29a71..f1212aeb7d9 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1840,7 +1840,7 @@ ProcessGDBRemote::UpdateThreadList (ThreadList &old_thread_list, ThreadList &new } } } - new_thread_list.AddThread(thread_sp); + new_thread_list.AddThreadSortedByIndexID (thread_sp); } } |