llvm-project/llvm/test/DebugInfo/PDB
Zachary Turner 3203e27473 [MSF] Default to FPM2, and always mark FPM pages allocated.
There are two FPMs in an MSF file, the idea being that for
incremental updates you can write to the alternate one and then
atomically swap them on commit.  LLVM defaulted to using FPM1
on the first commit, but this differs from Microsoft's behavior
which is to default to using FPM2 on the first commit.  To
eliminate some byte-level file differences, this patch changes
LLVM's default to also be FPM2.

Additionally, LLVM was trying to be "smart" about marking FPM
pages allocated.  In addition to marking every page belonging
to the alternate FPM as unallocated, LLVM also marked pages at
the end of the main FPM which were not needed as unallocated.

In order to match the behavior of Microsoft-generated PDBs, we
now always mark every FPM block as allocated, regardless of
whether it is in the main FPM or the alt FPM, and regardless of
whether or not it describes blocks which are actually in the file.

This has the side benefit of simplifying our code.

llvm-svn: 328812
2018-03-29 18:34:15 +00:00
..
DIA Rename llvm-pdbdump -> llvm-pdbutil. 2017-06-09 20:46:17 +00:00
Inputs Teach llvm-pdbutil to dump types from object files. 2017-12-05 23:58:18 +00:00
Native Enable llvm-pdbutil to list enumerations using native PDB reader 2017-08-04 22:37:58 +00:00
dbi-bytes.test [llvm-pdbutil] Dump raw bytes of various DBI stream subsections. 2017-06-23 21:11:54 +00:00
dump-fpm.test [pdbutil] Add a command to dump the FPM. 2017-08-02 22:25:52 +00:00
every-type.test [PDB] Add a test that verifies every known type record. 2017-07-05 18:43:25 +00:00
just-my-code.test [llvm-pdbutil] Add support for dumping detailed module stats. 2017-08-21 14:53:25 +00:00
module-bytes.test [llvm-pdbutil] Add a mode to `bytes` for dumping split debug chunks. 2017-06-26 17:22:36 +00:00
module-stats.test [llvm-pdbutil] Print detailed S_UDT stats. 2017-08-31 20:43:22 +00:00
obj-globalhash.test Regex out the local hash comparison test. 2017-12-06 00:58:12 +00:00
pdb-longname-truncation.test Rename llvm-pdbdump -> llvm-pdbutil. 2017-06-09 20:46:17 +00:00
pdb-minimal-construct.test Rename llvm-pdbdump -> llvm-pdbutil. 2017-06-09 20:46:17 +00:00
pdb-unknown-symbol.test Fix line endings. 2017-06-12 23:15:47 +00:00
pdb-yaml-symbols.test [codeview] YAMLize all section offsets and indices in symbol records 2017-06-20 21:19:22 +00:00
pdbdump-debug-subsections.test Resubmit "[llvm-pdbutil] rewrite the "raw" output style." 2017-06-15 22:24:24 +00:00
pdbdump-globals-empty.test [PDB] Handle an empty globals hash table with no buckets 2017-10-27 00:45:51 +00:00
pdbdump-headers.test [llvm-pdbutil] Add support for dumping detailed module stats. 2017-08-21 14:53:25 +00:00
pdbdump-merge-ids-and-types.test [PDB] Add a test that verifies every known type record. 2017-07-05 18:43:25 +00:00
pdbdump-mergeids.test [llvm-pdbutil] Rename "raw" to "dump". 2017-06-22 20:57:39 +00:00
pdbdump-mergetypes.test [PDB] Add a test that verifies every known type record. 2017-07-05 18:43:25 +00:00
pdbdump-objfilename.yaml [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
pdbdump-raw-blocks.test [llvm-pdbutil] Add the ability to dump raw bytes from the file. 2017-06-23 19:54:44 +00:00
pdbdump-raw-bytes.test [llvm-pdbutil] Dump raw bytes of pdb name map. 2017-06-23 20:18:38 +00:00
pdbdump-raw-stream.test [llvm-pdbutil] Add a function for formatting MSF data. 2017-06-23 18:52:13 +00:00
pdbdump-readwrite.test [llvm-pdbutil] Rename "raw" to "dump". 2017-06-22 20:57:39 +00:00
pdbdump-source-names.test [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
pdbdump-write.test Rename llvm-pdbdump -> llvm-pdbutil. 2017-06-09 20:46:17 +00:00
pdbdump-yaml-types.test [codeview] respect signedness of APSInts when printing to YAML 2017-06-21 22:31:52 +00:00
pdbdump-yaml.test Rename llvm-pdbdump -> llvm-pdbutil. 2017-06-09 20:46:17 +00:00
section-headers.test [llvm-pdbutil] Dump image section headers. 2017-08-04 20:02:38 +00:00
tpi-bytes.test [llvm-pdbutil] Dump raw bytes of type and id records. 2017-06-23 21:50:54 +00:00
udt-stats.test [llvm-pdbutil] Print detailed S_UDT stats. 2017-08-31 20:43:22 +00:00
write-fpm.test [MSF] Default to FPM2, and always mark FPM pages allocated. 2018-03-29 18:34:15 +00:00