[lldb/DWARF] Fix DW_AT_rnglists_base handling for dwo files
authorPavel Labath <pavel@labath.sk>
Thu, 5 Dec 2019 14:30:18 +0000 (15:30 +0100)
committerPavel Labath <pavel@labath.sk>
Fri, 6 Dec 2019 09:26:52 +0000 (10:26 +0100)
commit5ee8e673135891072789f0f9bf14a5d82f0f8e01
treeabdbbe40e2a495ae7a33337f510f2c6fc1df1dd3
parent777d1f7272b52cbe372e7234a7247b189e416062
[lldb/DWARF] Fix DW_AT_rnglists_base handling for dwo files

the value of DW_AT_rnglists_base of the skeleton unit is for that unit
alone (e.g. used in DW_AT_ranges of the unit DIE) and should not apply
to the split unit.

The split unit has a hardcoded range list base value -- we should
initialize range list code whenever we detect a nonempty
debug_rnglists.dwo section.
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
lldb/test/Shell/SymbolFile/DWARF/debug_rnglists-dwo.s [new file with mode: 0644]