2013-04-05 08:30:13 +00:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
|
2013-08-14 17:09:30 +00:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64.debuglink 0x400559" >> %t.input
|
2013-06-04 07:57:38 +00:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
|
2013-04-05 08:30:13 +00: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-10-30 20:27:17 +00:00
|
|
|
RUN: echo "%p/Inputs/dwarfdump-inl-test.high_pc.elf-x86-64 0x568" >> %t.input
|
2013-04-08 10:07:50 +00:00
|
|
|
RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
|
2013-06-28 08:15:40 +00:00
|
|
|
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
|
2013-04-05 08:30:13 +00:00
|
|
|
|
2013-06-28 08:15:40 +00:00
|
|
|
RUN: llvm-symbolizer --functions --inlining --demangle=false \
|
|
|
|
RUN: --default-arch=i386 < %t.input | FileCheck %s
|
2013-04-05 08:30:13 +00:00
|
|
|
|
|
|
|
CHECK: main
|
|
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
|
2013-06-04 07:57:38 +00:00
|
|
|
|
2013-08-14 17:09:30 +00:00
|
|
|
CHECK: main
|
|
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
|
|
|
|
|
2013-06-04 07:57:38 +00:00
|
|
|
CHECK: _start
|
|
|
|
|
2013-04-05 08:30:13 +00:00
|
|
|
CHECK: _Z1cv
|
|
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
|
2013-06-04 07:57:38 +00:00
|
|
|
|
2013-04-05 08:30:13 +00: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 09:22:24 +00:00
|
|
|
CHECK-NEXT: dwarfdump-inl-test.cc:
|
|
|
|
|
2013-10-30 20:27:17 +00:00
|
|
|
CHECK: inlined_h
|
|
|
|
CHECK-NEXT: dwarfdump-inl-test.h:3
|
|
|
|
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
|
|
|
|
CHECK-NEXT: dwarfdump-inl-test.cc:
|
|
|
|
|
2013-04-05 09:22:24 +00:00
|
|
|
CHECK: _Z3do1v
|
|
|
|
CHECK-NEXT: dwarfdump-test3-decl.h:7
|
2013-06-03 14:12:39 +00:00
|
|
|
|
2013-06-28 14:25:52 +00:00
|
|
|
CHECK: main
|
|
|
|
CHECK: _Z3inci
|
|
|
|
CHECK: _Z3inci
|
2013-06-28 08:15:40 +00:00
|
|
|
|
2013-06-03 14:12:39 +00:00
|
|
|
RUN: echo "unexisting-file 0x1234" > %t.input2
|
|
|
|
RUN: llvm-symbolizer < %t.input2
|
2013-06-28 08:15:40 +00:00
|
|
|
|
|
|
|
RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
|
|
|
|
RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH
|
|
|
|
|
|
|
|
UNKNOWN-ARCH-NOT: main
|
|
|
|
UNKNOWN-ARCH: ??
|
|
|
|
UNKNOWN-ARCH-NOT: main
|
2013-12-24 19:33:22 +00:00
|
|
|
|
|
|
|
RUN: echo "0x400559" > %t.input4
|
|
|
|
RUN: echo "0x400436" >> %t.input4
|
|
|
|
RUN: llvm-symbolizer --obj %p/Inputs/dwarfdump-test.elf-x86-64 < %t.input4 \
|
|
|
|
RUN: | FileCheck %s --check-prefix=BINARY
|
|
|
|
|
|
|
|
BINARY: main
|
|
|
|
BINARY-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
|
|
|
|
BINARY: _start
|
2014-01-16 17:25:12 +00:00
|
|
|
|
|
|
|
RUN: echo "0x400720" > %t.input5
|
|
|
|
RUN: echo "0x4004a0" >> %t.input5
|
|
|
|
RUN: echo "0x4006f0" >> %t.input5
|
|
|
|
RUN: llvm-symbolizer --obj %p/Inputs/llvm-symbolizer-test.elf-x86-64 < %t.input5 \
|
|
|
|
RUN: | FileCheck %s --check-prefix=BINARY_C
|
|
|
|
|
|
|
|
BINARY_C: main
|
|
|
|
BINARY_C-NEXT: /tmp/dbginfo{{[/\\]}}llvm-symbolizer-test.c:10
|
|
|
|
BINARY_C: _start
|
|
|
|
BINARY_C: {{g$}}
|
2014-02-26 13:10:01 +00:00
|
|
|
|
|
|
|
RUN: echo "0x1f1" > %t.input6
|
|
|
|
RUN: llvm-symbolizer --obj %p/Inputs/shared-object-stripped.elf-i386 < %t.input6 \
|
|
|
|
RUN: | FileCheck %s --check-prefix=STRIPPED
|
|
|
|
|
|
|
|
STRIPPED: global_func
|