[Lldb-commits] [lldb] [lldb] Allow languages to filter breakpoints set by line (PR #83908)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 8 09:00:20 PST 2024


================
@@ -339,6 +339,15 @@ class Language : public PluginInterface {
 
   virtual llvm::StringRef GetInstanceVariableName() { return {}; }
 
+  /// Returns true if this SymbolContext should be ignored when setting
+  /// breakpoints by line (number or regex). This is useful for languages that
+  /// create artificial functions without any meaningful user code associated
+  /// with them (e.g. code that gets expanded in late compilation stages, like
+  /// by CoroSplitter).
+  virtual bool IgnoreForLineBreakpoints(const SymbolContext &) const {
----------------
felipepiovezan wrote:

brevity: 
This is useful for -> Helpful for
any meaningful -> meaningful

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


More information about the lldb-commits mailing list