mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
707767bc86
This was discovered when running `llvm-pdbdump diff` against two files, the second of which was generated by running the first one through pdb2yaml and then yaml2pdb. The second one was missing some bytes from the PDB Stream, and tracking this down showed that at the end of the PDB Stream were some additional bytes that we were ignoring. Looking back to the reference code, these seem to specify some additional flags that indicate whether the PDB supports various optional features. This patch adds support for reading, writing, and round-tripping these flags through YAML and the raw dumper, and updates the tests accordingly. llvm-svn: 297984
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
; RUN: llvm-pdbdump pdb2yaml -stream-metadata -stream-directory -string-table -pdb-stream \
|
|
; RUN: %p/Inputs/empty.pdb | FileCheck -check-prefix=YAML %s
|
|
; RUN: llvm-pdbdump pdb2yaml -no-file-headers -stream-metadata -stream-directory -pdb-stream \
|
|
; RUN: %p/Inputs/empty.pdb | FileCheck -check-prefix=NO-HEADERS %s
|
|
|
|
; YAML: ---
|
|
; YAML-NEXT: MSF:
|
|
; YAML-NEXT: SuperBlock:
|
|
; YAML-NEXT: BlockSize: 4096
|
|
; YAML-NEXT: FreeBlockMap: 2
|
|
; YAML-NEXT: NumBlocks: 25
|
|
; YAML-NEXT: NumDirectoryBytes: 136
|
|
; YAML-NEXT: Unknown1: 0
|
|
; YAML-NEXT: BlockMapAddr: 24
|
|
; YAML-NEXT: NumDirectoryBlocks: 1
|
|
; YAML-NEXT: DirectoryBlocks: [ 23 ]
|
|
; YAML-NEXT: NumStreams: 17
|
|
; YAML-NEXT: FileSize: 102400
|
|
; YAML-NEXT: StreamSizes: [ 40, 118, 5392, 739, 784, 0, 556, 604, 104, 0, 160, 32,
|
|
; YAML-NEXT: 308, 239, 520, 308, 68 ]
|
|
; YAML-NEXT: StreamMap:
|
|
; YAML-NEXT: - Stream: [ 8 ]
|
|
; YAML-NEXT: - Stream: [ 19 ]
|
|
; YAML-NEXT: - Stream: [ 18, 17 ]
|
|
; YAML-NEXT: - Stream: [ 14 ]
|
|
; YAML-NEXT: - Stream: [ 20 ]
|
|
; YAML-NEXT: - Stream: [ ]
|
|
; YAML-NEXT: - Stream: [ 11 ]
|
|
; YAML-NEXT: - Stream: [ 13 ]
|
|
; YAML-NEXT: - Stream: [ 12 ]
|
|
; YAML-NEXT: - Stream: [ ]
|
|
; YAML-NEXT: - Stream: [ 10 ]
|
|
; YAML-NEXT: - Stream: [ 15 ]
|
|
; YAML-NEXT: - Stream: [ 6 ]
|
|
; YAML-NEXT: - Stream: [ 16 ]
|
|
; YAML-NEXT: - Stream: [ 7 ]
|
|
; YAML-NEXT: - Stream: [ 21 ]
|
|
; YAML-NEXT: - Stream: [ 22 ]
|
|
; YAML-NEXT: StringTable:
|
|
; YAML-NEXT: - 'd:\src\llvm\test\debuginfo\pdb\inputs\predefined c++ attributes (compiler internal)'
|
|
; YAML-NEXT: - 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
|
|
; YAML-NEXT: - '$T0 $ebp = $eip $T0 4 + ^ = $ebp $T0 ^ = $esp $T0 8 + = '
|
|
; YAML-NEXT: PdbStream:
|
|
; YAML-NEXT: Age: 1
|
|
; YAML-NEXT: Guid: '{0B355641-86A0-A249-896F-9988FAE52FF0}'
|
|
; YAML-NEXT: Signature: 1424295906
|
|
; YAML-NEXT: Features: [ VC110 ]
|
|
; YAML-NEXT: Version: VC70
|
|
; YAML-NEXT: ...
|
|
|
|
; NO-HEADERS: ---
|
|
; NO-HEADERS-NOT: MSF:
|
|
; NO-HEADERS-NOT: SuperBlock:
|
|
; NO-HEADERS: ... |