[Lldb-commits] [PATCH] D62073: Introduce DWARFUnitHeader and use it to parse type units out of .debug_info
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri May 17 11:54:33 PDT 2019
labath created this revision.
labath added reviewers: aprantl, clayborg, JDevlieghere.
This patch introduces the DWARFUnitHeader class. Its purpose (and its
structure, to the extent it was possible to make it) is the same as its
LLVM counterpart -- to extract the unit header information before we
actually construct the unit, so that we know which kind of units to
construct. This is needed because as of DWARF5, type units live in the
.debug_info section, which means it's not possible to statically
determine the type of units in a given section.
I add a test which parses dwarf5-style type units.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22981 bytes
Desc: not available
More information about the lldb-commits