From 90a51a443a2fc900e514279fa6ea8882c48b10fa Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Mon, 3 Feb 2025 13:40:57 -0800 Subject: [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. --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp') 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) { -- cgit v1.1