[Lldb-commits] [lldb] [lldb] Prefer readers with detailed debug information (PR #218030)

satyanarayana reddy janga via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 1 10:09:33 PDT 2026


satyajanga wrote:

> Do we need this change at all? If we use .debug_line only, then we will still need to make up compile units for this in LLDB, so can't we just claim we have compile unit abilities for files that have .debug_line only and this will fix the issue?

It is not sufficient. the below the defition on the enum


```
 enum Abilities {
    CompileUnits    = (1u << 0), // 0x01
    LineTables      = (1u << 1), // 0x02
    Functions       = (1u << 2), // 0x04
    Blocks          = (1u << 3), // 0x08
    GlobalVariables = (1u << 4), // 0x10
    LocalVariables  = (1u << 5), // 0x20
    VariableTypes   = (1u << 6), // 0x40
  };
```

for the standalone line table the abilities will be  => `CompileUnits | LineTables = 0x3 , `
but for symtab it is => `Functions | GlobalVaraibles = 0x14`


so the SymbolFileDwarf loses to Symtab when it has only standalone linetables, 0x14 > 0x3. 



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


More information about the lldb-commits mailing list