]> granicus.if.org Git - llvm/commit
[pdbutil] Add a command to dump the FPM.
authorZachary Turner <zturner@google.com>
Wed, 2 Aug 2017 22:25:52 +0000 (22:25 +0000)
committerZachary Turner <zturner@google.com>
Wed, 2 Aug 2017 22:25:52 +0000 (22:25 +0000)
commit34173def44aa86280505e4d06661d763c64d15c7
tree9ca95c9782350e3d3a717ebcd29c27f61e37ed00
parentcd14d227ff2bc8503b80ad02a22b081684c199c2
[pdbutil] Add a command to dump the FPM.

Recently problems have been discovered in the way we write the FPM
(free page map).  In order to fix this, we first need to establish
a baseline about what a correct FPM looks like using an MSVC
generated PDB, so that we can then make our own generated PDBs
match.  And in order to do this, the dumper needs a mode where it
can dump an FPM so that we can write tests for it.

This patch adds a command to dump the FPM, as well as a test against
a known-good PDB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309894 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/DebugInfo/MSF/MSFCommon.h
include/llvm/DebugInfo/MSF/MSFStreamLayout.h [deleted file]
include/llvm/DebugInfo/MSF/MappedBlockStream.h
include/llvm/DebugInfo/PDB/Native/PDBFile.h
lib/DebugInfo/MSF/MSFCommon.cpp
lib/DebugInfo/MSF/MappedBlockStream.cpp
lib/DebugInfo/PDB/Native/PDBFile.cpp
test/DebugInfo/PDB/dump-fpm.test [new file with mode: 0644]
tools/llvm-pdbutil/BytesOutputStyle.cpp
tools/llvm-pdbutil/BytesOutputStyle.h
tools/llvm-pdbutil/LinePrinter.cpp
tools/llvm-pdbutil/LinePrinter.h
tools/llvm-pdbutil/llvm-pdbutil.cpp
tools/llvm-pdbutil/llvm-pdbutil.h
unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp