OSDN Git Service

[dwarfdump] Verify line table prologue
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 8 Sep 2017 09:48:51 +0000 (09:48 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 8 Sep 2017 09:48:51 +0000 (09:48 +0000)
commit1a443ce0dd4cb4df7396b4aa1a692e55afef4416
tree6b877cdfbaec1a84ecb0eb9313d9dbb785489f17
parent8277ad7473e1564aab849f30bdc266a38370bbd6
[dwarfdump] Verify line table prologue

This patch adds prologue verification, which is already present in
Apple's dwarfdump. It checks for invalid directory indices and warns
about duplicate file paths.

Differential revision: https://reviews.llvm.org/D37511

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312782 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFVerifier.cpp
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp