]> granicus.if.org Git - llvm/commit
[llvm-pdbutil] Create a "bytes" subcommand.
authorZachary Turner <zturner@google.com>
Thu, 22 Jun 2017 20:58:11 +0000 (20:58 +0000)
committerZachary Turner <zturner@google.com>
Thu, 22 Jun 2017 20:58:11 +0000 (20:58 +0000)
commit08bb54f87baf45c7c4724ae1c5ef24d3a196e6d2
treeb9b455f103e79c7b9205f19a69278a2e8646bf50
parent0895032e6e12499aee40e1fffcab26048b3a6ca5
[llvm-pdbutil] Create a "bytes" subcommand.

This idea originally came about when I was doing some deep
investigation of why certain bytes in a PDB that we round-tripped
differed from their original bytes in the source PDB.  I found
myself having to hack up the code in many places to dump the
bytes of this substream, or that record.  It would be nice if
we could just do this for every possible stream, substream,
debug chunk type, etc.

It doesn't make sense to put this under dump because there's just
so many options that would detract from the more common use case
of just dumping deserialized records.  So making a new subcommand
seems like the most logical course of action.  In doing so, we
already have two command line options that are suitable for this
new subcommand, so start out by moving them there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306056 91177308-0d34-0410-b5e6-96231b3b80d8
test/DebugInfo/PDB/pdbdump-headers.test
test/DebugInfo/PDB/pdbdump-raw-blocks.test
test/DebugInfo/PDB/pdbdump-raw-stream.test
tools/llvm-pdbutil/BytesOutputStyle.cpp [new file with mode: 0644]
tools/llvm-pdbutil/BytesOutputStyle.h [new file with mode: 0644]
tools/llvm-pdbutil/CMakeLists.txt
tools/llvm-pdbutil/DumpOutputStyle.cpp
tools/llvm-pdbutil/LinePrinter.cpp
tools/llvm-pdbutil/LinePrinter.h
tools/llvm-pdbutil/llvm-pdbutil.cpp
tools/llvm-pdbutil/llvm-pdbutil.h