[Lldb-commits] [lldb] [LLDB] Fix symbol breakpoint lookups for non-C-like languages (PR #110543)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 30 13:49:31 PDT 2024


================
@@ -797,6 +797,10 @@ void Module::LookupInfo::Prune(SymbolContextList &sc_list,
     while (i < sc_list.GetSize()) {
       if (!sc_list.GetContextAtIndex(i, sc))
         break;
+      if (!lldb_private::Language::LanguageIsCFamily(sc.GetLanguage())) {
----------------
walter-erquinigo wrote:

What you say makes sense.
@jimingham , what about me moving the implementation of this second part of the Prune method (line 790 onwards) to Language plugins? I could then create the method 
```SymbolLookupPruneHook(SymbolContextList &sc_list, size_t start_idx, Module::LookupInfo &lookup_info, Module &module)```

That would be very convenient because I could implement this in my own language plugin for further refinements.

What do you think?

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


More information about the lldb-commits mailing list