File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
source/Plugins/SymbolFile/DWARF
test/Shell/SymbolFile/DWARF/x86 Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ void DebugNamesDWARFIndex::GetFullyQualifiedType(
371
371
!ProcessEntry (entry, callback))
372
372
return ;
373
373
}
374
+ m_fallback.GetFullyQualifiedType (context, callback);
374
375
}
375
376
376
377
bool DebugNamesDWARFIndex::SameParentChain (
Original file line number Diff line number Diff line change 3
3
## split unit from the DWP file. This can sometimes happen when the compile unit
4
4
## is nearly empty (e.g. because LTO has optimized all of it away).
5
5
6
+ # Is flaky on Windows on Arm.
7
+ # UNSUPPORTED: system-windows
8
+
6
9
# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %s --defsym MAIN=0 > %t
7
10
# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %s > %t.dwp
8
11
# RUN: %lldb %t -o "image lookup -t my_enum_type" \
Original file line number Diff line number Diff line change
1
+ REQUIRES: lld, python
2
+
3
+ RUN: split-file %s %t
4
+ RUN: %clang --target=x86_64-pc-linux -g -gpubnames -c %t/file1.c -o %t-1.o
5
+ RUN: %clang --target=x86_64-pc-linux -g -gno-pubnames -c %t/file2.c -o %t-2.o
6
+ RUN: llvm-dwarfdump %t-1.o --debug-names | FileCheck %s --check-prefix=PUBNAMES
7
+ RUN: llvm-dwarfdump %t-2.o --debug-names | FileCheck %s --check-prefix=NOPUBNAMES
8
+ RUN: ld.lld %t-1.o %t-2.o -o %t.out
9
+ RUN: %lldb %t.out -s %t/commands -o exit | FileCheck %s
10
+
11
+ // Precondition check: The first file should contain a debug_names index, but no
12
+ // entries for MYSTRUCT.
13
+ PUBNAMES: Name Index @ 0x0 {
14
+ PUBNAMES-NOT: MYSTRUCT
15
+
16
+ // The second file should not contain an index.
17
+ NOPUBNAMES-NOT: Name Index
18
+
19
+ // Starting from the variable in the first file, we should be able to find the
20
+ // declaration of the type in the first unit, and then match that with the
21
+ // definition in the second unit.
22
+ CHECK: (lldb) script
23
+ CHECK: struct MYSTRUCT {
24
+ CHECK-NEXT: int x;
25
+ CHECK-NEXT: }
26
+
27
+ #--- commands
28
+ script lldb.target.FindFirstGlobalVariable("struct_ptr").GetType().GetPointeeType()
29
+ #--- file1.c
30
+ struct MYSTRUCT *struct_ptr;
31
+ #--- file2.c
32
+ struct MYSTRUCT {
33
+ int x;
34
+ };
35
+ struct MYSTRUCT struct_;
You can’t perform that action at this time.
0 commit comments