1 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
2 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64.debuglink 0x400559" >> %t.input
3 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
4 RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input
5 RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input
6 RUN: echo "%p/Inputs/dwarfdump-inl-test.high_pc.elf-x86-64 0x568" >> %t.input
7 RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
8 RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
9 RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
10 RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
11 RUN: echo "%p/Inputs/llvm-symbolizer-dwo-test 0x400514" >> %t.input
13 RUN: llvm-symbolizer --functions --inlining --demangle=false \
14 RUN: --default-arch=i386 < %t.input | FileCheck %s
17 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
20 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
25 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
28 CHECK-NEXT: dwarfdump-inl-test.h:2
30 CHECK-NEXT: dwarfdump-inl-test.h:7
32 CHECK-NEXT: dwarfdump-inl-test.cc:3
34 CHECK-NEXT: dwarfdump-inl-test.cc:
37 CHECK-NEXT: dwarfdump-inl-test.h:3
39 CHECK-NEXT: dwarfdump-inl-test.h:7
41 CHECK-NEXT: dwarfdump-inl-test.cc:3
43 CHECK-NEXT: dwarfdump-inl-test.cc:
46 CHECK-NEXT: dwarfdump-test3-decl.h:7
53 CHECK-NEXT: llvm-symbolizer-dwo-test.cc:11
55 RUN: echo "unexisting-file 0x1234" > %t.input2
56 RUN: llvm-symbolizer < %t.input2
58 RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
59 RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH
61 UNKNOWN-ARCH-NOT: main
63 UNKNOWN-ARCH-NOT: main
65 RUN: echo "0x400559" > %t.input4
66 RUN: echo "0x400436" >> %t.input4
67 RUN: llvm-symbolizer --obj %p/Inputs/dwarfdump-test.elf-x86-64 < %t.input4 \
68 RUN: | FileCheck %s --check-prefix=BINARY
71 BINARY-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
74 RUN: echo "0x400720" > %t.input5
75 RUN: echo "0x4004a0" >> %t.input5
76 RUN: echo "0x4006f0" >> %t.input5
77 RUN: llvm-symbolizer --obj %p/Inputs/llvm-symbolizer-test.elf-x86-64 < %t.input5 \
78 RUN: | FileCheck %s --check-prefix=BINARY_C
81 BINARY_C-NEXT: /tmp/dbginfo{{[/\\]}}llvm-symbolizer-test.c:10
85 RUN: echo "0x1f1" > %t.input6
86 RUN: llvm-symbolizer --obj %p/Inputs/shared-object-stripped.elf-i386 < %t.input6 \
87 RUN: | FileCheck %s --check-prefix=STRIPPED