llvm.org GIT mirror llvm / 8c846ac
[PDB] Copy inlinee lines records into the PDB Summary: - Fixes inline call frame line table display in windbg. - Improve llvm-pdbutil to dump extra file ids. - Warn on unknown subsections so we don't have this kind of bug in the future. Reviewers: inglorion, akhuang, aganea Subscribers: eraman, zturner, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62701 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362429 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 months ago
2 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6969 }
7070
7171 Error initialize(BinaryStreamReader Reader);
72 Error initialize(BinaryStreamRef Section) {
73 return initialize(BinaryStreamReader(Section));
74 }
75
76 bool valid() const { return Lines.valid(); }
7277 bool hasExtraFiles() const;
7378
7479 Iterator begin() const { return Lines.begin(); }
7681
7782 private:
7883 InlineeLinesSignature Signature;
79 VarStreamArray Lines;
84 LinesArray Lines;
8085 };
8186
8287 class DebugInlineeLinesSubsection final : public DebugSubsection {
994994 P.formatLine("{0,+8} | {1,+5} | ", Entry.Header->Inlinee,
995995 fmtle(Entry.Header->SourceLineNum));
996996 Strings.formatFromChecksumsOffset(P, Entry.Header->FileID, true);
997 for (const auto &ExtraFileID : Entry.ExtraFiles) {
998 P.formatLine(" ");
999 Strings.formatFromChecksumsOffset(P, ExtraFileID, true);
1000 }
9971001 }
9981002 P.NewLine();
9991003 });