OSDN Git Service

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)
commit3784bf85f3cdfe49e9b964b22e3ad687526bbbc2
tree2e5c1f1223df4f37e472edb0e8ca2d16f6ea0802
parent87d4b8c4a1a3db4e60d15614aee4bffdccc5dcee
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267585 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/PDBExtras.h
include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h [new file with mode: 0644]
include/llvm/DebugInfo/PDB/Raw/PDBFile.h
include/llvm/DebugInfo/PDB/Raw/PDBRawConstants.h
lib/DebugInfo/PDB/CMakeLists.txt
lib/DebugInfo/PDB/PDBExtras.cpp
lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp [new file with mode: 0644]
lib/DebugInfo/PDB/Raw/PDBFile.cpp
lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp
test/DebugInfo/PDB/pdbdump-headers.test
tools/llvm-pdbdump/llvm-pdbdump.cpp