Parse and dump PDB DBI Stream Header Information
authorZachary Turner <zturner@google.com>
Tue, 26 Apr 2016 18:42:34 +0000 (18:42 +0000)
committerZachary Turner <zturner@google.com>
Tue, 26 Apr 2016 18:42:34 +0000 (18:42 +0000)
commit53a65ba5c98ca29c568ff18fe14e11ce6ff53b43
treed49e2aae51f3aab0f7882005430c701e0504705c
parent35c913dd4cd51ca0cb816e1ec60d16bc205b74fb
Parse and dump PDB DBI Stream Header Information

The DBI stream contains a lot of bookkeeping information for other
streams. In particular it contains information about section contributions
and linked modules. This patch is a first attempt at parsing some of the
information out of the DBI stream. It currently only parses and dumps the
headers of the DBI stream, so none of the module data or section
contribution data is pulled out.

This is just a proof of concept that we understand the basic properties of
the DBI stream's metadata, and followup patches will try to extract more
detailed information out.

Differential Revision: http://reviews.llvm.org/D19500
Reviewed By: majnemer, ruiu

llvm-svn: 267585
llvm/include/llvm/DebugInfo/PDB/PDBExtras.h
llvm/include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h [new file with mode: 0644]
llvm/include/llvm/DebugInfo/PDB/Raw/PDBFile.h
llvm/include/llvm/DebugInfo/PDB/Raw/PDBRawConstants.h
llvm/lib/DebugInfo/PDB/CMakeLists.txt
llvm/lib/DebugInfo/PDB/PDBExtras.cpp
llvm/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp [new file with mode: 0644]
llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp
llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp
llvm/test/DebugInfo/PDB/pdbdump-headers.test
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp