[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrameProvider for real threads (PR #161870)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 7 11:01:55 PST 2025
================
@@ -986,6 +986,34 @@ class LLDB_API SBTarget {
lldb::SBMutex GetAPIMutex() const;
+ /// Register a scripted frame provider for this target.
+ ///
+ /// \param[in] class_name
+ /// The name of the Python class that implements the frame provider.
+ ///
+ /// \param[in] args_dict
+ /// A dictionary of arguments to pass to the frame provider class.
+ ///
+ /// \return
+ /// An error object indicating success or failure.
+ lldb::SBError RegisterScriptedFrameProvider(const char *class_name,
+ lldb::SBStructuredData args_dict);
+
+ /// Remove a scripted frame provider from this target by name.
+ ///
+ /// \param[in] provider_name
+ /// The name of the frame provider class to remove.
+ ///
+ /// \return
+ /// An error object indicating success or failure.
+ lldb::SBError RemoveScriptedFrameProvider(const char *provider_name);
+
+ /// Clear the scripted frame provider for this target.
----------------
JDevlieghere wrote:
How many scripted frame providers can exist per target? If it's only one, why do we need both `RemoveScriptedFrameProvider` and `ClearScriptedFrameProvider`. If it's multiple, then this method should be plural.
https://github.com/llvm/llvm-project/pull/161870
More information about the lldb-commits
mailing list