OSDN Git Service

[LLD/PDB] Write actual records to the globals stream.
authorZachary Turner <zturner@google.com>
Fri, 11 Aug 2017 19:00:03 +0000 (19:00 +0000)
committerZachary Turner <zturner@google.com>
Fri, 11 Aug 2017 19:00:03 +0000 (19:00 +0000)
commite3e384aef78b419032c1a47109c05620766d092c
tree2afa7dee59b9d8d011d8c67d12128bcb9301db6b
parent9c0367e30fe28a291bb0c4fbbc2f5743e587d6af
[LLD/PDB] Write actual records to the globals stream.

Previously we were writing an empty globals stream.  Windows
tools interpret this as "private symbols are not present in
this PDB", even when they are, so we need to fix this.  Regardless,
without it we don't have information about global variables, so
we need to fix it anyway.  This patch does that.

With this patch, the "lm" command in WinDbg correctly reports
that we have private symbols available, but the "dv" command
still refuses to display local variables.

Differential Revision: https://reviews.llvm.org/D36535

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310743 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/CodeView/RecordName.h [moved from include/llvm/DebugInfo/CodeView/TypeName.h with 65% similarity]
include/llvm/DebugInfo/CodeView/TypeDeserializer.h
include/llvm/DebugInfo/CodeView/TypeRecord.h
include/llvm/DebugInfo/PDB/Native/GSIStreamBuilder.h
lib/DebugInfo/CodeView/CMakeLists.txt
lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp
lib/DebugInfo/CodeView/RecordName.cpp [moved from lib/DebugInfo/CodeView/TypeName.cpp with 76% similarity]
lib/DebugInfo/CodeView/TypeTableCollection.cpp
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp