summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/llvm-symbolizer.test
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-04-18 22:22:44 +0000
committerAlexey Samsonov <samsonov@google.com>2014-04-18 22:22:44 +0000
commit5c39fdfb7bb27b794c9689133e172036e446a5c4 (patch)
treeba88a5093f030b707dea9fdd7f019611339b7176 /llvm/test/DebugInfo/llvm-symbolizer.test
parentec8c975214ceb9f59301e2abcd084fcdff06fbcd (diff)
downloadbcm5719-llvm-5c39fdfb7bb27b794c9689133e172036e446a5c4.tar.gz
bcm5719-llvm-5c39fdfb7bb27b794c9689133e172036e446a5c4.zip
[llvm-symbolizer] Print file/line for a PC even if there is no DIE describing it.
This is important for symbolizing executables with debug info in unavailable .dwo files. Even if all DIE entries are missing, we can still symbolize an address: function name can be fetched from symbol table, and file/line info can be fetched from line table. llvm-svn: 206665
Diffstat (limited to 'llvm/test/DebugInfo/llvm-symbolizer.test')
-rw-r--r--llvm/test/DebugInfo/llvm-symbolizer.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/llvm-symbolizer.test b/llvm/test/DebugInfo/llvm-symbolizer.test
index 4b532f3e4aa..6d51fe96c48 100644
--- a/llvm/test/DebugInfo/llvm-symbolizer.test
+++ b/llvm/test/DebugInfo/llvm-symbolizer.test
@@ -8,6 +8,7 @@ RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
+RUN: echo "%p/Inputs/llvm-symbolizer-dwo-test 0x400514" >> %t.input
RUN: llvm-symbolizer --functions --inlining --demangle=false \
RUN: --default-arch=i386 < %t.input | FileCheck %s
@@ -48,6 +49,9 @@ CHECK: main
CHECK: _Z3inci
CHECK: _Z3inci
+CHECK: main
+CHECK-NEXT: llvm-symbolizer-dwo-test.cc:11
+
RUN: echo "unexisting-file 0x1234" > %t.input2
RUN: llvm-symbolizer < %t.input2
OpenPOWER on IntegriCloud