2013-04-05 16:30:13 +08:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
|
2013-06-04 15:57:38 +08:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
|
2013-04-05 16:30:13 +08:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input
|
|
|
|
RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input
|
2013-04-08 18:07:50 +08:00
|
|
|
RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
|
2013-04-05 16:30:13 +08:00
|
|
|
|
|
|
|
RUN: llvm-symbolizer --functions --inlining --demangle=false < %t.input \
|
|
|
|
RUN: | FileCheck %s
|
|
|
|
|
|
|
|
REQUIRES: shell
|
|
|
|
|
|
|
|
CHECK: main
|
|
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
|
2013-06-04 15:57:38 +08:00
|
|
|
|
|
|
|
CHECK: _start
|
|
|
|
|
2013-04-05 16:30:13 +08:00
|
|
|
CHECK: _Z1cv
|
|
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
|
2013-06-04 15:57:38 +08:00
|
|
|
|
2013-04-05 16:30:13 +08:00
|
|
|
CHECK: inlined_h
|
|
|
|
CHECK-NEXT: dwarfdump-inl-test.h:2
|
|
|
|
CHECK-NEXT: inlined_g
|
|
|
|
CHECK-NEXT: dwarfdump-inl-test.h:7
|
|
|
|
CHECK-NEXT: inlined_f
|
|
|
|
CHECK-NEXT: dwarfdump-inl-test.cc:3
|
|
|
|
CHECK-NEXT: main
|
2013-04-05 17:22:24 +08:00
|
|
|
CHECK-NEXT: dwarfdump-inl-test.cc:
|
|
|
|
|
|
|
|
CHECK: _Z3do1v
|
|
|
|
CHECK-NEXT: dwarfdump-test3-decl.h:7
|
2013-06-03 22:12:39 +08:00
|
|
|
|
|
|
|
RUN: echo "unexisting-file 0x1234" > %t.input2
|
|
|
|
RUN: llvm-symbolizer < %t.input2
|