OSDN Git Service

[PDB] Fix an issue writing the publics stream.
authorZachary Turner <zturner@google.com>
Wed, 9 Aug 2017 04:23:59 +0000 (04:23 +0000)
committerZachary Turner <zturner@google.com>
Wed, 9 Aug 2017 04:23:59 +0000 (04:23 +0000)
commited601f1b51b783546ea05758cf76f21254d38e27
treea877c6b9eb8e006e166fd17c0f6aced6da3591cd
parent3be08b1e5e1d5f97c68347bef921e7fb07620926
[PDB] Fix an issue writing the publics stream.

In the refactor to merge the publics and globals stream, a bug
was introduced that wrote the wrong value for one of the fields
of the PublicsStreamHeader.  This caused debugging in WinDbg
to break.

We had no way of dumping any of these fields, so in addition to
fixing the bug I've added dumping support for them along with a
test that verifies the correct value is written.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310439 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Native/GlobalsStream.h
include/llvm/DebugInfo/PDB/Native/PublicsStream.h
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
lib/DebugInfo/PDB/Native/PublicsStream.cpp
tools/llvm-pdbutil/DumpOutputStyle.cpp