[Lldb-commits] [PATCH] D96194: Defer the decision whether to use the CU or TU index until after reading the unit header.
Jorge Gorbe Moya via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 5 18:19:30 PST 2021
jgorbe created this revision.
jgorbe added reviewers: dblaikie, labath.
Herald added a subscriber: arphaman.
jgorbe requested review of this revision.
Herald added a project: LLDB.
In DWARF v4 compile units go in .debug_info and type units go in
.debug_types. However, in v5 both kinds of units are in .debug_info.
Therefore we can't decide whether to use the CU or TU index just by
looking at which section we're reading from. We have to wait until we
have read the unit type from the header.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96194
Files:
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
lldb/test/Shell/SymbolFile/DWARF/dwarf5_tu_index_abbrev_offset.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96194.321908.patch
Type: text/x-patch
Size: 19057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210206/9eb4ff22/attachment-0001.bin>
More information about the lldb-commits
mailing list