summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-06-10 23:23:34 +0000
committerGreg Clayton <gclayton@apple.com>2016-06-10 23:23:34 +0000
commit88f86b60ca808b2e7e48a1ab07a97842fb380f66 (patch)
treebaaad02fa00f28b86d5932c84e4789d4cd03a249 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentff2addf703390fb51df70d6e173973e956ff6c0c (diff)
downloadbcm5719-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.cpp2
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);
}
}
OpenPOWER on IntegriCloud