summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-04-12 10:51:52 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-04-12 10:51:52 +0000
commita8d916aad034d8d68faf1a024d016b55db5aa0f9 (patch)
tree9b36c131df4c4635dd50cb1db02a56493337cea2 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent10e3bdaaa82eec4fcb0720954131a39ba8ece2c7 (diff)
downloadbcm5719-llvm-a8d916aad034d8d68faf1a024d016b55db5aa0f9.tar.gz
bcm5719-llvm-a8d916aad034d8d68faf1a024d016b55db5aa0f9.zip
Revert "Don't assume backing thread shares protocol ID."
This reverts r329891 because the test case is timing out on linux: http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/21834 llvm-svn: 329897
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 0fb97b2f7db..fc5f79e3544 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1822,9 +1822,10 @@ ThreadSP ProcessGDBRemote::SetThreadStopInfo(
if (!thread_sp->StopInfoIsUpToDate()) {
thread_sp->SetStopInfo(StopInfoSP());
// If there's a memory thread backed by this thread, we need to use it
- // to calculate StopInfo.
- if (ThreadSP memory_thread_sp =
- m_thread_list.GetBackingThread(thread_sp))
+ // to calcualte StopInfo.
+ ThreadSP memory_thread_sp =
+ m_thread_list.FindThreadByProtocolID(thread_sp->GetProtocolID());
+ if (memory_thread_sp)
thread_sp = memory_thread_sp;
if (exc_type != 0) {
OpenPOWER on IntegriCloud