[Lldb-commits] [PATCH] D107456: [lldb] Support .debug_rnglists.dwo sections in dwp file
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 11 07:45:59 PDT 2021
jankratochvil added inline comments.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:519
+ contribution->Length);
+ return DWARFDataExtractor();
+ }
----------------
Here could be an error message.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:537
+ if (const llvm::DWARFUnitIndex::Entry *entry = m_header.GetIndexEntry()) {
+ const auto *contribution = entry->getContribution(llvm::DW_SECT_RNGLISTS);
+ if (!contribution) {
----------------
I have found this `getContribution` adjustment duplication, are there some reasons it is not unified? https://www.jankratochvil.net/t/D107456-unify.patch
The issue is the code then handles two different `.debug_rnglists` `DWARFDataExtractor`s with different offsets.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:556
+ " (ranges list base: 0x%" PRIx64 "): %s",
+ offset, m_ranges_base, toString(table_or_error.takeError()).c_str());
}
----------------
One such reason can be missing DWP absolute offset for the error report. That could be returned from `GetRnglistData()`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107456/new/
https://reviews.llvm.org/D107456
More information about the lldb-commits
mailing list