[PATCH] D66465: [DWARF] Fix reading 64-bit DWARF type units.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 03:46:21 PDT 2019


ikudrin created this revision.
ikudrin added reviewers: dblaikie, probinson, MaskRay, aprantl.
ikudrin added a project: LLVM.

- 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.


Repository:
  rL LLVM

https://reviews.llvm.org/D66465

Files:
  include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
  include/llvm/DebugInfo/DWARF/DWARFUnit.h
  lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
  lib/DebugInfo/DWARF/DWARFUnit.cpp
  test/tools/llvm-dwarfdump/X86/typeunit-v4-dwarf64.s
  test/tools/llvm-dwarfdump/X86/typeunit-v5-dwarf64.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66465.216093.patch
Type: text/x-patch
Size: 8190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190820/197b3e5a/attachment-0001.bin>


More information about the llvm-commits mailing list