Home | History | Annotate | Download | only in DebugInfo
      1 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
      2 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
      3 RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input
      4 RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input
      5 RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
      6 RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
      7 RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
      8 RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
      9 
     10 RUN: llvm-symbolizer --functions --inlining --demangle=false \
     11 RUN:    --default-arch=i386 < %t.input | FileCheck %s
     12 
     13 CHECK:       main
     14 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
     15 
     16 CHECK:      _start
     17 
     18 CHECK:      _Z1cv
     19 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
     20 
     21 CHECK:      inlined_h
     22 CHECK-NEXT: dwarfdump-inl-test.h:2
     23 CHECK-NEXT: inlined_g
     24 CHECK-NEXT: dwarfdump-inl-test.h:7
     25 CHECK-NEXT: inlined_f
     26 CHECK-NEXT: dwarfdump-inl-test.cc:3
     27 CHECK-NEXT: main
     28 CHECK-NEXT: dwarfdump-inl-test.cc:
     29 
     30 CHECK:       _Z3do1v
     31 CHECK-NEXT: dwarfdump-test3-decl.h:7
     32 
     33 CHECK:      main
     34 CHECK:      _Z3inci
     35 CHECK:      _Z3inci
     36 
     37 RUN: echo "unexisting-file 0x1234" > %t.input2
     38 RUN: llvm-symbolizer < %t.input2
     39 
     40 RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
     41 RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH
     42 
     43 UNKNOWN-ARCH-NOT: main
     44 UNKNOWN-ARCH: ??
     45 UNKNOWN-ARCH-NOT: main
     46