summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2019-02-06 10:13:14 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2019-02-06 10:13:14 +0000
commitcd1424aebb37d7aceea37f2c2740f1da42bf879b (patch)
treebbfb4cd74b47cf7846d69b510dcef733bdddae5d /llvm/test/DebugInfo/Inputs
parentaa192bb77660930531b5ecfc80c131fb3e179850 (diff)
downloadbcm5719-llvm-cd1424aebb37d7aceea37f2c2740f1da42bf879b.tar.gz
bcm5719-llvm-cd1424aebb37d7aceea37f2c2740f1da42bf879b.zip
[DebugInfo][llvm-symbolizer]Add some tests for edge cases when symbolizing
This patch adds half a dozen new tests that test various edge cases in the behaviour of the symbolizer and DWARF data parsing. All of them test the current behaviour. Reviewed by: JDevlieghere, aprantl Differential Revision: https://reviews.llvm.org/D57741 llvm-svn: 353286
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
-rw-r--r--llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.c6
-rwxr-xr-xllvm/test/DebugInfo/Inputs/symbolize-64bit-addr.elf.x86_64bin0 -> 9616 bytes
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.c b/llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.c
new file mode 100644
index 00000000000..137ff054ed1
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.c
@@ -0,0 +1,6 @@
+int _start() {
+ return 0;
+}
+
+// Compile with "clang --target=x86_64-pc-linux -c -g symbolize-64bit-addr.c".
+// Link with "ld.lld -Ttext=0xffffffff00000000 symbolize-64bit-addr.o -o symbolize-64bit-addr.elf.x86_64".
diff --git a/llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.elf.x86_64 b/llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.elf.x86_64
new file mode 100755
index 00000000000..1f99b21296b
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/symbolize-64bit-addr.elf.x86_64
Binary files differ
OpenPOWER on IntegriCloud