Home | History | Annotate | Download | only in pdb
      1 RUN: grep '^ADDR:' %s | sed -s 's/ADDR: //' \
      2 RUN: 	| llvm-symbolizer -obj="%p/Inputs/test.exe" \
      3 RUN:    | FileCheck %s --check-prefix=CHECK
      4 RUN: grep '^ADDR:' %s | sed -s 's/ADDR: //' \
      5 RUN: 	| llvm-symbolizer -obj="%p/Inputs/test.exe" -demangle=false \
      6 RUN: 	| FileCheck %s --check-prefix=CHECK-NO-DEMANGLE
      7 
      8 Subtract ImageBase from all the offsets and run the test again with
      9 --relative-address.
     10 
     11 RUN: grep '^ADDR:' %s | sed -s 's/ADDR: //' \
     12 RUN: 	| %python -c 'import sys;print "\n".join([hex(int(x, 16) - 0x400000) for x in sys.stdin])' \
     13 RUN:	| llvm-symbolizer -obj="%p/Inputs/test.exe" -demangle=false --relative-address \
     14 RUN:    | FileCheck %s --check-prefix=CHECK-NO-DEMANGLE
     15 
     16 ADDR: 0x401000
     17 ADDR: 0x401010
     18 ADDR: 0x401070
     19 ADDR: 0x401030
     20 ADDR: 0x401040
     21 ADDR: 0x401050
     22 ADDR: 0x401060
     23 ADDR: 0x500000
     24 
     25 CHECK: foo(void)
     26 CHECK-NEXT: test.cpp:10
     27 CHECK: main
     28 CHECK-NEXT: test.cpp:13:0
     29 CHECK: NS::Foo::bar(void)
     30 CHECK-NEXT: test.cpp:6:0
     31 CHECK: {{^foo_cdecl$}}
     32 CHECK: {{^foo_stdcall$}}
     33 CHECK: {{^foo_fastcall$}}
     34 CHECK: {{^foo_vectorcall$}}
     35 
     36 CHECK-NO-DEMANGLE: ?foo@@YAXXZ
     37 CHECK-NO-DEMANGLE-NEXT: test.cpp:10
     38 CHECK-NO-DEMANGLE: _main
     39 CHECK-NO-DEMANGLE-NEXT: test.cpp:13
     40 CHECK-NO-DEMANGLE: ?bar@Foo@NS@@QAEXXZ
     41 CHECK-NO-DEMANGLE-NEXT: test.cpp:6
     42 CHECK-NO-DEMANGLE: _foo_cdecl
     43 CHECK-NO-DEMANGLE: _foo_stdcall@0
     44 CHECK-NO-DEMANGLE: @foo_fastcall@0
     45 CHECK-NO-DEMANGLE: foo_vectorcall@@0
     46