This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Fix reading 64-bit DWARF type units.
ClosedPublic

Authored by ikudrin on Aug 20 2019, 3:45 AM.

Details

Summary
  • The type_offset field is 8 bytes long in DWARF64. The patch extends TypeOffset to uint64_t and fixes its reading.
  • The patch also fixes the check for of TypeOffset bounds because it was inaccurate in DWARF64 case.

Diff Detail

Repository
rL LLVM

Event Timeline

ikudrin created this revision.Aug 20 2019, 3:45 AM
MaskRay accepted this revision.Aug 20 2019, 5:22 AM
This revision is now accepted and ready to land.Aug 20 2019, 5:22 AM
This revision was automatically updated to reflect the committed changes.

Hi @MaskRay please remember to post a comment along with approval so Phab will send an email to the commits list. Thanks!

Hi @MaskRay please remember to post a comment along with approval so Phab will send an email to the commits list. Thanks!

Sorry.. I didn't know otherwise there is no email.