diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2025-02-03 13:40:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-03 13:40:57 -0800 |
commit | 90a51a443a2fc900e514279fa6ea8882c48b10fa (patch) | |
tree | 4dc57b9f3505841698d22fecf1f0e2a775bb7681 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 622ee03e262469aecbad9d7f2b4b968576e005f0 (diff) | |
download | llvm-90a51a443a2fc900e514279fa6ea8882c48b10fa.zip llvm-90a51a443a2fc900e514279fa6ea8882c48b10fa.tar.gz llvm-90a51a443a2fc900e514279fa6ea8882c48b10fa.tar.bz2 |
[lldb] Implement bidirectional access for backing<->backed thread relationship (#125300)
This enables finding the backed thread from the backing thread without
going through the thread list, and it will be useful for subsequent
commits.
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 21a0fa2..3f34ea2 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1728,7 +1728,7 @@ ThreadSP ProcessGDBRemote::SetThreadStopInfo( 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)) + if (ThreadSP memory_thread_sp = thread_sp->GetBackedThread()) thread_sp = memory_thread_sp; if (exc_type != 0) { |