[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 31 17:04:47 PST 2025


================
@@ -470,6 +470,18 @@ class Thread : public std::enable_shared_from_this<Thread>,
 
   virtual void ClearStackFrames();
 
+  /// Derived classes implementing SetBackingThread should use this to provide
+  /// bidirectional access to the Backing-Backed relationship.
+  void SetBackedThread(Thread &backed_thread) {
----------------
felipepiovezan wrote:

Good point, this also addresses my concern of people calling `SetBackedThread` without also calling `SetBackingThread`. Will update.

https://github.com/llvm/llvm-project/pull/125300


More information about the lldb-commits mailing list