mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
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
This commit is contained in:
parent
59fbe357fd
commit
e43f85dcf1
BIN
test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo
Normal file
BIN
test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo
Normal file
Binary file not shown.
BIN
test/DebugInfo/Inputs/split-dwarf-no-skel-address.o
Normal file
BIN
test/DebugInfo/Inputs/split-dwarf-no-skel-address.o
Normal file
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
REQUIRES: shell
|
||||
RUN: rm -rf %t && mkdir -p %t
|
||||
RUN: cd %t
|
||||
RUN: cp %p/Inputs/split-dwarf-no-skel-address.dwo %t
|
||||
RUN: echo "%p/Inputs/split-dwarf-no-skel-address.o 0x4" > %t.input
|
||||
|
||||
RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
|
||||
RUN: --default-arch=i386 < %t.input | FileCheck %s
|
||||
|
||||
Built from the following source:
|
||||
void f1();
|
||||
__attribute__((always_inline)) inline void f2() { f1(); }
|
||||
void f3() { f2(); }
|
||||
|
||||
Compiled to assembly with clang, modified the skeleton CU to remove the
|
||||
high/low pc (& update the CU length field and abbrev to match) & then
|
||||
compile/objcopy to make the .o and .dwo.
|
||||
|
||||
CHECK: _Z2f2v
|
||||
CHECK: ./test.cpp:2:51
|
Loading…
Reference in New Issue
Block a user