Skip to content

Commit 787a3df

Browse files
committed
DebugInfo/llvm-symbolizer: Test symbolizing Split DWARF without addresses in the skeleton CU
Identified in an llvm-dev discussion around DWARFUnit::collectAddressRanges llvm-svn: 324702
1 parent bbce34a commit 787a3df

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Binary file not shown.
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
REQUIRES: shell
2+
RUN: rm -rf %t && mkdir -p %t
3+
RUN: cd %t
4+
RUN: cp %p/Inputs/split-dwarf-no-skel-address.dwo %t
5+
RUN: echo "%p/Inputs/split-dwarf-no-skel-address.o 0x4" > %t.input
6+
7+
RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
8+
RUN: --default-arch=i386 < %t.input | FileCheck %s
9+
10+
Built from the following source:
11+
void f1();
12+
__attribute__((always_inline)) inline void f2() { f1(); }
13+
void f3() { f2(); }
14+
15+
Compiled to assembly with clang, modified the skeleton CU to remove the
16+
high/low pc (& update the CU length field and abbrev to match) & then
17+
compile/objcopy to make the .o and .dwo.
18+
19+
CHECK: _Z2f2v
20+
CHECK: ./test.cpp:2:51

0 commit comments

Comments
 (0)