[Lldb-commits] [lldb] [lldb] Document the SBDebugger public interface (PR #147621)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 11 06:06:23 PDT 2025


================
@@ -55,16 +56,33 @@ class LLDB_API SBDebugger {
     eBroadcastBitExternalProgressCategory =
         lldb::DebuggerBroadcastBit::eBroadcastBitExternalProgressCategory,
   };
+
+  /// Default constructor creates an invalid SBDebugger instance.
   SBDebugger();
 
   SBDebugger(const lldb::SBDebugger &rhs);
 
   ~SBDebugger();
 
+  /// Get the broadcaster class name.
+  ///
+  /// \return The name of the broadcaster class.
   static const char *GetBroadcasterClass();
 
+  /// Check if a specific language is supported by LLDB.
+  ///
+  /// \param [in] language
+  ///   The language to check.
+  ///
+  /// \return
+  ///   True if the language is supported, false otherwise.
   static bool SupportsLanguage(lldb::LanguageType language);
 
+  /// Get the broadcaster associated with this debugger.
+  ///
+  /// \return
+  ///   A broadcaster object that allows subscribing to events from this
+  ///   debugger.
----------------
labath wrote:

```suggestion
  /// Get the broadcaster that allows subscribing to events from this
  ///   debugger.
```

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


More information about the lldb-commits mailing list