[PATCH] D67098: [DWARF] Fix referencing Range List Tables from CUs for DWARF64.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 07:24:58 PDT 2019


ikudrin created this revision.
ikudrin added reviewers: dblaikie, aprantl, probinson, MaskRay.
ikudrin added projects: debug-info, LLVM.
ikudrin added a parent revision: D66643: [DWARF] Support DWARF64 in DWARFListTableHeader..

As DW_AT_rnglists_base points after the header and headers have different sizes for DWARF32 and DWARF64, we have to use the format of the CU to shift the offset correctly in order to extract the referenced range list table.

The patch also changes the type of `RangeSectionBase` because in DWARF64 it is 8-bytes long.


Repository:
  rL LLVM

https://reviews.llvm.org/D67098

Files:
  include/llvm/DebugInfo/DWARF/DWARFUnit.h
  lib/DebugInfo/DWARF/DWARFUnit.cpp
  test/DebugInfo/X86/dwarfdump-rnglists-dwarf64.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67098.218451.patch
Type: text/x-patch
Size: 13262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190903/9a46aeff/attachment.bin>


More information about the llvm-commits mailing list