[pdb] Add command line options for dumping individual streams and blocks
authorZachary Turner <zturner@google.com>
Fri, 9 Sep 2016 18:17:52 +0000 (18:17 +0000)
committerZachary Turner <zturner@google.com>
Fri, 9 Sep 2016 18:17:52 +0000 (18:17 +0000)
commit72c5b6451f469077934e755a42e4e72bedbb00f1
tree697e90b82e5374efdb239312adc0a70ccf1d30c3
parent47320da1ee9191afb1952c8fd8838548d319dfe2
[pdb] Add command line options for dumping individual streams and blocks

I ran into a situation where I wanted to print out the contents of
page 6 of a PDB as a binary blob, and there was no straightforward
way to do that.

In addition to adding that, this patch also adds the ability to dump
a stream by index as a binary blob, and it will stitch together all
the blocks and dump the whole thing as one seemingly contiguous
sequence of bytes.

llvm-svn: 281070
llvm/test/DebugInfo/PDB/pdbdump-headers.test
llvm/test/DebugInfo/PDB/pdbdump-raw-blocks.test [new file with mode: 0644]
llvm/test/DebugInfo/PDB/pdbdump-raw-stream.test [new file with mode: 0644]
llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp
llvm/tools/llvm-pdbdump/llvm-pdbdump.h