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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits