2015-02-11 06:43:25 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2016-05-07 06:15:42 +08:00
|
|
|
DebugInfoCodeView
|
2016-07-30 04:56:36 +08:00
|
|
|
DebugInfoMSF
|
2015-02-11 06:43:25 +08:00
|
|
|
DebugInfoPDB
|
2016-05-04 07:25:47 +08:00
|
|
|
Object
|
2017-05-31 05:53:05 +08:00
|
|
|
ObjectYAML
|
2016-05-04 07:25:47 +08:00
|
|
|
Support
|
2015-02-11 06:43:25 +08:00
|
|
|
)
|
2015-01-28 07:02:23 +08:00
|
|
|
|
2017-06-10 04:46:17 +08:00
|
|
|
add_llvm_tool(llvm-pdbutil
|
2017-02-02 02:30:22 +08:00
|
|
|
Analyze.cpp
|
2017-06-23 04:58:11 +08:00
|
|
|
BytesOutputStyle.cpp
|
2017-04-29 09:13:21 +08:00
|
|
|
Diff.cpp
|
[llvm-pdbutil] Improve diff mode.
We're getting to the point that some MS tools (e.g. DIA) can recognize
our PDBs but others (e.g. link.exe) cannot. I think the way forward is
to improve our tooling to help us find differences more easily. For
example, if we can compile the same program with clang-cl and cl and
have a tool tell us all the places where the PDBs differ, this could
tell us what we're doing wrong. It's tricky though, because there are a
lot of "benign" differences in a PDB. For example, if the string table
in one PDB consists of "foo" followed by "bar" and in the other PDB it
consists of "bar" followed by "foo", this is not necessarily a critical
difference, as long as the uses of these strings also refer to the
correct location. On the other hand, if the second PDB doesn't even
contain the string "foo" at all, this is a critical difference.
diff mode has been in llvm-pdbutil for quite a while, but because of the
above challenge along with some others, it's been hard to make it
useful. I think this patch addresses that. It looks for all the same
things, but it now prints the output in tabular format (carefully
formatted and aligned into tables and fields), and it highlights
critical differences in red, non-critical differences in yellow, and
identical fields in green. This makes it easy to spot the places we
differ, and the general concept of outputting arbitrary fields in
tabular format can be extended to provide analysis into many of the
different types of information that show up in a PDB.
Differential Revision: https://reviews.llvm.org/D35039
llvm-svn: 307421
2017-07-08 02:45:37 +08:00
|
|
|
DiffPrinter.cpp
|
2017-06-23 04:57:39 +08:00
|
|
|
DumpOutputStyle.cpp
|
2017-06-10 04:46:17 +08:00
|
|
|
llvm-pdbutil.cpp
|
2017-06-16 06:24:24 +08:00
|
|
|
FormatUtil.cpp
|
2015-02-27 17:15:59 +08:00
|
|
|
LinePrinter.cpp
|
2017-06-16 06:24:24 +08:00
|
|
|
MinimalSymbolDumper.cpp
|
|
|
|
MinimalTypeDumper.cpp
|
2016-06-07 04:37:05 +08:00
|
|
|
PdbYaml.cpp
|
2017-01-11 08:35:43 +08:00
|
|
|
PrettyBuiltinDumper.cpp
|
|
|
|
PrettyClassDefinitionDumper.cpp
|
2017-04-13 07:18:51 +08:00
|
|
|
PrettyClassLayoutGraphicalDumper.cpp
|
2017-01-11 08:35:43 +08:00
|
|
|
PrettyCompilandDumper.cpp
|
|
|
|
PrettyEnumDumper.cpp
|
|
|
|
PrettyExternalSymbolDumper.cpp
|
|
|
|
PrettyFunctionDumper.cpp
|
|
|
|
PrettyTypeDumper.cpp
|
|
|
|
PrettyTypedefDumper.cpp
|
|
|
|
PrettyVariableDumper.cpp
|
2017-03-14 07:28:25 +08:00
|
|
|
StreamUtil.cpp
|
2016-06-07 04:37:05 +08:00
|
|
|
YAMLOutputStyle.cpp
|
2015-02-11 06:43:25 +08:00
|
|
|
)
|