It does not make sense to extract whole DW_TAG_partial_unit only to find out it is a partial unit and so it cannot be indexed on its own.
All DWZ patches are also applied in: git clone -b dwz git://git.jankratochvil.net/lldb
Paths
| Differential D40471
DWZ 08/12: DWARFCompileUnit::ExtractDIEsIfNeeded can now expand AllDiesButCuDieOnlyForPartialUnits AbandonedPublic Authored by jankratochvil on Nov 26 2017, 5:13 AM.
Details
Diff Detail Event Timelinejankratochvil added a parent revision: D40470: Protect DWARFCompileUnit::m_die_array by a new mutex.Nov 26 2017, 5:13 AM Comment Actions See inline comments.
This revision now requires changes to proceed.Nov 27 2017, 10:44 AM jankratochvil marked an inline comment as done. jankratochvil removed a parent revision: D40470: Protect DWARFCompileUnit::m_die_array by a new mutex.Feb 20 2018, 8:02 AM jankratochvil removed a child revision: D40472: DWZ 07/11: Protect DWARFDebugInfo::m_compile_units by a new mutex.
Revision Contents
Diff 124297 source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
source/Plugins/SymbolFile/DWARF/DWARFDebugPubnames.cpp
source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
|
All of these changes can be avoided by just appropriately checking for partial units and skipping them in this index function. Do you plan on using this functionality in any other place? I would rather you just fix this function to filter out the partial units.