This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Fix referencing Range List Tables from CUs for DWARF64.
ClosedPublic

Authored by ikudrin on Sep 3 2019, 7:24 AM.

Details

Summary

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.

Diff Detail

Event Timeline

aprantl accepted this revision.Sep 3 2019, 9:27 AM
This revision is now accepted and ready to land.Sep 3 2019, 9:27 AM
MaskRay added inline comments.Sep 4 2019, 10:05 PM
test/DebugInfo/X86/dwarfdump-rnglists-dwarf64.s
3

What is tee %t.di.log used for?

5

Same question goes for %t.lkup.log

ikudrin updated this revision to Diff 218843.Sep 4 2019, 11:34 PM
  • Remove redundant log files. Thanks, @MaskRay!
MaskRay accepted this revision.Sep 4 2019, 11:48 PM
This revision was automatically updated to reflect the committed changes.