[PATCH] D20971: Dump MSF headers to YAML

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 10:42:35 PDT 2016


zturner created this revision.
zturner added reviewers: rnk, ruiu, majnemer.
zturner added a subscriber: llvm-commits.

This introduces the YAML output style and implements dumping of the MSF headers to YAML.  This is the smallest possible patch to get basic support for YAML output working.  After I confirm I'm using the library correctly and that the code I've written is sufficiently "yamlish" (like pythonic), I'll iterate more quickly with post commit reviews.

Output looks like this currently:
```
D:\src\llvmbuild\ninja>bin\llvm-pdbdump.exe -raw-headers -raw-output-style=YAML d:\FileCheck.pdb
---
MSF:
  BlockSize:       4096
  Unknown0:        1
  NumBlocks:       1767
  NumDirectoryBytes: 6728
  Unknown1:        0
  BlockMapAddr:    1558
  NumDirectoryBlocks: 2
  BlockMapOffset:  6381568
  DirectoryBlocks:
    - 1556
    - 1557
  NumStreams:      131
...
```

http://reviews.llvm.org/D20971

Files:
  tools/llvm-pdbdump/CMakeLists.txt
  tools/llvm-pdbdump/LLVMOutputStyle.cpp
  tools/llvm-pdbdump/LLVMOutputStyle.h
  tools/llvm-pdbdump/OutputStyle.h
  tools/llvm-pdbdump/PdbYaml.cpp
  tools/llvm-pdbdump/PdbYaml.h
  tools/llvm-pdbdump/YAMLOutputStyle.cpp
  tools/llvm-pdbdump/YAMLOutputStyle.h
  tools/llvm-pdbdump/llvm-pdbdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20971.59579.patch
Type: text/x-patch
Size: 10315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160603/66cfb810/attachment.bin>


More information about the llvm-commits mailing list