DW_OP_GNU_addr_index has been renamed as DW_OP_addrx in the standard. clang produces DW_OP_addrx tags and with this change lldb starts to process them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lldb/source/Expression/DWARFExpression.cpp | ||
---|---|---|
2910 ↗ | (On Diff #189410) | Should this comment be updated? |
lldb/source/Expression/DWARFExpression.cpp | ||
---|---|---|
2910 ↗ | (On Diff #189410) | Updated the comment. |
Comment Actions
Is there a way to force clang to generate this and/or are existing tests failing because this support is missing?
Comment Actions
Would a test similar to lit/SymbolFile/DWARF/array-sizes.s be possible/appropriate?
I'm thinking of something like:
- produce debug info in the form of a .s file (either with clang of via hand-tuning dwarf) which uses DW_OP_addrx
- assemble&link it
- run lldb, have it open the file and print the value of the global variable
The advantage of this would be that it's more explicit about what is being tested, and it would keep testing the same thing even if clang decides to encode variable locations differently in the future.