Files
clang-p2996/lldb/test/API/lang/cpp/limit-debug-info/main.cpp
Pavel Labath 9677e8171c [lldb/dwarf] Fix DW_IDX_parent processing for split dwarf (#92745)
DWARFDebugInfo only knows how to resolve references in its own file, but
in split dwarf, the index entries will refer to DIEs in the separate
(DWO) file. To resolve the DIERef correctly we'd either need to go
through the SymbolFileDWARF to get the full logic for resolving a
DIERef, or use the fact that ToDIERef already looks up the correct unit
while computing its result.

This patch does the latter.

This bug manifested itself in not being able to find type definitions
for types in namespaces, so I've modified one of our type resolving test
cases to run with debug_names, and added a namespaced class into it (it
originally contained only a top-level class).
2024-05-21 12:45:59 +02:00

7 lines
71 B
C++

#include "derived.h"
int main() {
foo1 = foo2;
foo2_1 = foo2_2;
}