[Lldb-commits] [lldb] Fix GetDIE is outside of its CU error from .debug_names (PR #157574)
David Peixotto via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 10 18:50:29 PDT 2025
================
@@ -131,8 +131,12 @@ DebugNamesDWARFIndex::GetNonSkeletonUnit(const DebugNames::Entry &entry) const {
unit_offset = entry.getLocalTUOffset();
if (unit_offset) {
if (DWARFUnit *cu = m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo,
- *unit_offset))
- return &cu->GetNonSkeletonUnit();
+ *unit_offset)) {
+ DWARFUnit &ret = cu->GetNonSkeletonUnit();
----------------
dmpots wrote:
Thanks for trying out that approach. Do you have a WIP patch you can push to a branch somewhere? Might be something we want to tackle later.
Your fix seems targeted and reasonable given the amount of code relying on existing behavior.
https://github.com/llvm/llvm-project/pull/157574
More information about the lldb-commits
mailing list