2017-06-10 04:46:17 +08:00
|
|
|
; RUN: llvm-pdbutil yaml2pdb -pdb=%t.pdb %p/Inputs/debug-subsections.yaml
|
|
|
|
; RUN: llvm-pdbutil pdb2yaml -all -no-file-headers %t.pdb | FileCheck --check-prefix=YAML %s
|
2017-06-09 07:39:33 +08:00
|
|
|
|
|
|
|
YAML: Modules:
|
|
|
|
YAML-NEXT: - Module: Foo.obj
|
|
|
|
YAML-NEXT: ObjFile: Foo.obj
|
|
|
|
YAML-NEXT: Subsections:
|
|
|
|
YAML-NEXT: - !CrossModuleExports
|
|
|
|
YAML-NEXT: Exports:
|
|
|
|
YAML-NEXT: - LocalId: 4852
|
|
|
|
YAML-NEXT: GlobalId: 9283
|
|
|
|
YAML-NEXT: - LocalId: 2147487875
|
|
|
|
YAML-NEXT: GlobalId: 9123
|
|
|
|
YAML: - Module: Bar.obj
|
|
|
|
YAML-NEXT: ObjFile: Bar.obj
|
|
|
|
YAML-NEXT: Subsections:
|
|
|
|
YAML-NEXT: - !CrossModuleExports
|
|
|
|
YAML-NEXT: Exports:
|
|
|
|
YAML-NEXT: - LocalId: 4265
|
|
|
|
YAML-NEXT: GlobalId: 6097
|
|
|
|
YAML-NEXT: - LocalId: 4297
|
|
|
|
YAML-NEXT: GlobalId: 4677
|
|
|
|
YAML-NEXT: - !CrossModuleImports
|
|
|
|
YAML-NEXT: Imports:
|
|
|
|
YAML-NEXT: - Module: Foo.obj
|
|
|
|
YAML-NEXT: Imports: [ 4852, 2147487875 ]
|
|
|
|
YAML: - Module: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
|
|
|
|
YAML-NEXT: ObjFile: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
|
|
|
|
YAML-NEXT: SourceFiles:
|
|
|
|
YAML-NEXT: - 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
|
|
|
|
YAML-NEXT: Subsections:
|
|
|
|
YAML-NEXT: - !FileChecksums
|
|
|
|
YAML-NEXT: Checksums:
|
|
|
|
YAML-NEXT: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
|
|
|
|
YAML-NEXT: Kind: MD5
|
|
|
|
YAML-NEXT: Checksum: A0A5BD0D3ECD93FC29D19DE826FBF4BC
|
|
|
|
YAML-NEXT: - FileName: 'f:\dd\externalapis\windows\10\sdk\inc\winerror.h'
|
|
|
|
YAML-NEXT: Kind: MD5
|
|
|
|
YAML-NEXT: Checksum: 1154D69F5B2650196E1FC34F4134E56B
|
|
|
|
YAML-NEXT: - !Lines
|
|
|
|
YAML-NEXT: CodeSize: 10
|
|
|
|
YAML-NEXT: Flags: [ ]
|
2017-06-09 16:50:39 +08:00
|
|
|
YAML-NEXT: RelocOffset: 100016
|
2017-06-09 07:39:33 +08:00
|
|
|
YAML-NEXT: RelocSegment: 1
|
|
|
|
YAML-NEXT: Blocks:
|
|
|
|
YAML-NEXT: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
|
|
|
|
YAML-NEXT: Lines:
|
|
|
|
YAML-NEXT: - Offset: 0
|
|
|
|
YAML-NEXT: LineStart: 5
|
|
|
|
YAML-NEXT: IsStatement: true
|
|
|
|
YAML-NEXT: EndDelta: 0
|
|
|
|
YAML-NEXT: - Offset: 3
|
|
|
|
YAML-NEXT: LineStart: 6
|
|
|
|
YAML-NEXT: IsStatement: true
|
|
|
|
YAML-NEXT: EndDelta: 0
|
|
|
|
YAML-NEXT: - Offset: 8
|
|
|
|
YAML-NEXT: LineStart: 7
|
|
|
|
YAML-NEXT: IsStatement: true
|
|
|
|
YAML-NEXT: EndDelta: 0
|
|
|
|
YAML-NEXT: Columns:
|
|
|
|
YAML-NEXT: - !InlineeLines
|
|
|
|
YAML-NEXT: HasExtraFiles: false
|
2017-06-16 06:24:24 +08:00
|
|
|
YAML-NEXT: Sites:
|
2017-06-09 07:39:33 +08:00
|
|
|
YAML-NEXT: - FileName: 'f:\dd\externalapis\windows\10\sdk\inc\winerror.h'
|
|
|
|
YAML-NEXT: LineNum: 26950
|
|
|
|
YAML-NEXT: Inlinee: 22767
|