We have various command line options that print the type of a stream, the size of a stream, etc but nowhere that it can all be viewed together. Since a previous patch introduced the ability to dump the bytes of a stream, this seems like a good place to present a full view of the stream's properties including its size, what kind of data it represents, and the blocks it occupies. So I added the ability to print that information to the -stream-data command line option. llvm-svn: 281077
24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
; RUN: llvm-pdbdump raw -stream-data=1 %p/Inputs/empty.pdb | FileCheck --check-prefix=STREAM1 %s
|
|
; RUN: not llvm-pdbdump raw -stream-data=100 %p/Inputs/empty.pdb 2>&1 | FileCheck --check-prefix=INVALIDSTREAM %s
|
|
|
|
STREAM1: Stream Data {
|
|
STREAM1-NEXT: Stream {
|
|
STREAM1-NEXT: Index: 1
|
|
STREAM1-NEXT: Type: PDB Stream
|
|
STREAM1-NEXT: Size: 118
|
|
STREAM1-NEXT: Blocks: [19]
|
|
STREAM1-NEXT: Data (
|
|
STREAM1-NEXT: 0000: 942E3101 E207E554 01000000 0B355641 |..1....T.....5VA|
|
|
STREAM1-NEXT: 0010: 86A0A249 896F9988 FAE52FF0 22000000 |...I.o..../."...|
|
|
STREAM1-NEXT: 0020: 2F4C696E 6B496E66 6F002F6E 616D6573 |/LinkInfo./names|
|
|
STREAM1-NEXT: 0030: 002F7372 632F6865 61646572 626C6F63 |./src/headerbloc|
|
|
STREAM1-NEXT: 0040: 6B000300 00000600 00000100 00001A00 |k...............|
|
|
STREAM1-NEXT: 0050: 00000000 00001100 00000900 00000A00 |................|
|
|
STREAM1-NEXT: 0060: 00000D00 00000000 00000500 00000000 |................|
|
|
STREAM1-NEXT: 0070: 00004191 3201 |..A.2.|
|
|
STREAM1-NEXT: )
|
|
STREAM1-NEXT: }
|
|
STREAM1-NEXT: }
|
|
|
|
INVALIDSTREAM: Native PDB Error: The specified stream could not be loaded.
|