[DebugInfo] Fix reading range lists of v5 units in DWP.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 1 Apr 2020 14:54:12 +0000 (21:54 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Mon, 6 Apr 2020 06:28:06 +0000 (13:28 +0700)
commit35819ff3cf4cfa3f40be19f5bbfc84d0d9f1f8d7
tree5c88db7a6c0e7f2aadc45e68c307d90364960d7f
parenta93b77b97f105db911316d896056dc8718a850e3
[DebugInfo] Fix reading range lists of v5 units in DWP.

In package files, the base offset provided by index sections should be
used to find the contribution of a unit. The patch adds that base
offset when reading range list tables.

Differential revision: https://reviews.llvm.org/D77401
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/DebugInfo/X86/dwp-v5-rnglists.s [new file with mode: 0644]