[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrameProvider for real threads (PR #161870)

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 30 15:45:28 PDT 2025


================
@@ -697,6 +698,21 @@ class Target : public std::enable_shared_from_this<Target>,
   Status Attach(ProcessAttachInfo &attach_info,
                 Stream *stream); // Optional stream to receive first stop info
 
+  // Frame provider methods
+
+  /// Set the scripted frame provider descriptor for this target.
+  /// All new threads in this target will use this descriptor to create their
+  /// frame providers.
+  Status SetScriptedFrameProviderDescriptor(
----------------
jimingham wrote:

Also, how can this call fail?  If it can't fail (the implementation doesn't do anything that can fail) then we shouldn't return an error here.  The target can't realize the class backed by the ScriptedFrameProviderDescriptor at this point, so I don't see how it could validate anything.

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


More information about the lldb-commits mailing list