brintos

brintos / llvm-project-archived public Read only

0
0
Text · 877 B · 6c3f5ed Raw
23 lines · plain
1Copy the DWO and then cd into the output directory, so that the symbolizer would2find the DWO if it attempted to.3RUN: rm -rf %t && mkdir -p %t4RUN: cd %t5RUN: cp %p/Inputs/split-dwarf-no-skel-address.dwo %t6RUN: llvm-symbolizer --inlining --no-demangle \7RUN:    --obj=%p/Inputs/split-dwarf-no-skel-address.o 0x4 | FileCheck %s8 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 the15high/low pc (& update the CU length field and abbrev to match) & then16compile/objcopy to make the .o and .dwo.17 18Ensure that the f2 inlined frame is not included - it's inefficient to have to19go and load all the debug info and search for the address ranges, so assume20that a lack of ranges on the CU means the CU covers no addresses.21 22CHECK-NOT: _Z2f2v23