xref: /llvm-project/llvm/test/DebugInfo/symbolize-split-dwarf-no-skel-address.test (revision 563a29d449def26b9e3bdf9fb1bf59d03b461a62)
1Copy the DWO and then cd into the output directory, so that the symbolizer would
2find the DWO if it attempted to.
3RUN: rm -rf %t && mkdir -p %t
4RUN: cd %t
5RUN: cp %p/Inputs/split-dwarf-no-skel-address.dwo %t
6RUN: llvm-symbolizer --inlining --no-demangle \
7RUN:    --obj=%p/Inputs/split-dwarf-no-skel-address.o 0x4 | FileCheck %s
8
9Built from the following source:
10void f1();
11__attribute__((always_inline)) inline void f2() { f1(); }
12void f3() { f2(); }
13
14Compiled to assembly with clang, modified the skeleton CU to remove the
15high/low pc (& update the CU length field and abbrev to match) & then
16compile/objcopy to make the .o and .dwo.
17
18Ensure that the f2 inlined frame is not included - it's inefficient to have to
19go and load all the debug info and search for the address ranges, so assume
20that a lack of ranges on the CU means the CU covers no addresses.
21
22CHECK-NOT: _Z2f2v
23