summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-02-09 03:34:32 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-02-09 03:34:32 +0000
commit787a3df9516b80160d7fb72e0e3d0ed4123ad45b (patch)
tree9fc942cf336a1f78df46abca9c74f063da061c6b /llvm/test
parentbbce34a8dd5ebb6478669e385a9fd1275929ac18 (diff)
downloadbcm5719-llvm-787a3df9516b80160d7fb72e0e3d0ed4123ad45b.tar.gz
bcm5719-llvm-787a3df9516b80160d7fb72e0e3d0ed4123ad45b.zip
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
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwobin0 -> 968 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.obin0 -> 2904 bytes
-rw-r--r--llvm/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test20
3 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo
new file mode 100644
index 00000000000..cca308d8a8a
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o b/llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o
new file mode 100644
index 00000000000..94e9b2d53f5
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o
Binary files differ
diff --git a/llvm/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test b/llvm/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test
new file mode 100644
index 00000000000..5087b5d1248
--- /dev/null
+++ b/llvm/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test
@@ -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
OpenPOWER on IntegriCloud