[Lldb-commits] [lldb] [lldb] Fix a crash when using .dwp files and make type lookup reliable with the index cache (PR #79544)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 31 10:51:44 PST 2024
================
@@ -81,27 +81,88 @@ void DWARFDebugInfo::ParseUnitsFor(DIERef::Section section) {
: m_context.getOrLoadDebugInfoData();
lldb::offset_t offset = 0;
while (data.ValidOffset(offset)) {
- llvm::Expected<DWARFUnitSP> unit_sp = DWARFUnit::extract(
- m_dwarf, m_units.size(), data, section, &offset);
+ llvm::Expected<DWARFUnitSP> expected_unit_sp =
+ DWARFUnit::extract(m_dwarf, m_units.size(), data, section, &offset);
- if (!unit_sp) {
+ if (!expected_unit_sp) {
----------------
adrian-prantl wrote:
Maybe we could at least LLDB_LOG the error into the dwarf channel?
https://github.com/llvm/llvm-project/pull/79544
More information about the lldb-commits
mailing list