This is an archive of the discontinued LLVM Phabricator instance.

[llvm-pdbutil] Dump the FPM stream
AcceptedPublic

Authored by zturner on Aug 1 2017, 11:02 AM.

Details

Reviewers
rnk
Summary
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.

Diff Detail

Event Timeline

zturner created this revision.Aug 1 2017, 11:02 AM
rnk accepted this revision.Aug 1 2017, 1:08 PM

lgtm

This revision is now accepted and ready to land.Aug 1 2017, 1:08 PM
llvm/include/llvm/DebugInfo/MSF/MSFCommon.h