[Lldb-commits] [PATCH] D73206: Pass `CompileUnit *` along `DWARFDIE` for DWZ
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 27 13:28:33 PDT 2020
jankratochvil updated this revision to Diff 260428.
jankratochvil added a comment.
This is only to get an idea what I am preparing, not for detailed reading. Maybe it should be split even more? It contains both `main_unit` addition to callbacks:
void DebugNamesDWARFIndex::GetGlobalVariables(
- const DWARFUnit &cu, llvm::function_ref<bool(DWARFDIE die)> callback) {
+ const DWARFUnit &cu,
+ llvm::function_ref<bool(DWARFCompileUnit *main_unit, DWARFDIE die)>
+ callback) {
and also data structure extensions like:
- typedef llvm::DenseMap<const DWARFDebugInfoEntry *, lldb_private::Type *>
+ typedef llvm::DenseMap<
+ std::pair<DWARFCompileUnit *, const DWARFDebugInfoEntry *>,
+ lldb_private::Type *>
DIEToTypePtr;
...
- dwarf->GetDIEToType()[die.GetDIE()] = type_sp.get();
+ dwarf->GetDIEToType()[die.MainCUtoDIEPair(main_unit)] = type_sp.get();
With some needed infrastructure for `MainCUtoDIEPair` & co.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73206/new/
https://reviews.llvm.org/D73206
Files:
lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.h
lldb/source/Plugins/SymbolFile/DWARF/DIERef.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParser.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.h
lldb/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp
lldb/source/Plugins/SymbolFile/DWARF/NameToDIE.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h
lldb/test/Shell/SymbolFile/DWARF/DW_AT_low_pc-addrx.s
lldb/test/Shell/SymbolFile/DWARF/array-sizes.s
lldb/test/Shell/SymbolFile/DWARF/debug-types-address-ranges.s
lldb/test/Shell/SymbolFile/DWARF/debug-types-dwarf5.s
lldb/test/Shell/SymbolFile/DWARF/debug_ranges-missing-section.s
lldb/test/Shell/SymbolFile/DWARF/debug_ranges.s
lldb/test/Shell/SymbolFile/DWARF/debug_rnglists.s
lldb/test/Shell/SymbolFile/DWARF/dwarf5_locations.s
lldb/test/Shell/SymbolFile/DWARF/dwp-debug-types.s
lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73206.260428.patch
Type: text/x-patch
Size: 204176 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200427/58034c92/attachment-0001.bin>
More information about the lldb-commits
mailing list