OSDN Git Service

[llvm-pdbutil] Add an export subcommand.
authorZachary Turner <zturner@google.com>
Mon, 2 Apr 2018 18:35:21 +0000 (18:35 +0000)
committerZachary Turner <zturner@google.com>
Mon, 2 Apr 2018 18:35:21 +0000 (18:35 +0000)
commit55ff94d9d70b3105f84bebc22e60afbe5823eca2
treee32f77ccee62df033df90c96c076031f72a8fa7c
parent6eda33795aad7ff462078c247abcaf5760fedeac
[llvm-pdbutil] Add an export subcommand.

This command can dump the binary contents of a stream to a file.
This is useful when you want to do side-by-side comparisons of
a specific stream from two PDBs to examine the differences between
them.  You can export both of them to a file, then open them up
side by side in a hex editor (for example), so as to eliminate any
differences that might arise from the contents being on different
blocks in the PDB.

In subsequent patches I plan to improve the "explain" subcommand
so that you can explain the contents of a binary file that isn't
necessarily a full PDB, but one of these dumped streams, by telling
the subcommand how to interpret the contents.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329002 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Native/InfoStream.h
lib/DebugInfo/PDB/Native/InfoStream.cpp
lib/DebugInfo/PDB/Native/PDBFile.cpp
test/tools/llvm-pdbdump/Inputs/tpi.bin [new file with mode: 0644]
test/tools/llvm-pdbdump/export-stream.test [new file with mode: 0644]
tools/llvm-pdbutil/llvm-pdbutil.cpp
tools/llvm-pdbutil/llvm-pdbutil.h