[PATCH] D77552: [DebugInfo] Fix reading DWARFv5 type units in DWP.
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 08:06:14 PDT 2020
ikudrin created this revision.
ikudrin added reviewers: dblaikie, probinson, jhenderson.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: hiraditya, aprantl.
In DWARFv5, type units are stored in .debug_info sections, along with compilation units, and they are distinguished by the unit_type field in the header, not by the name of the section. It is impossible to associate the correct index section of a DWP file with the unit before the unit's header is read. This patch fixes reading DWARFv5 type units by parsing the header first and then applying the index entry according to the actual unit type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77552
Files:
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/DebugInfo/X86/dwp-v5-tu.s
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77552.255334.patch
Type: text/x-patch
Size: 8864 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200406/638fd584/attachment.bin>
More information about the llvm-commits
mailing list