llvm-dwarfdump: Print warnings on invalid DWARF
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 27 Jun 2021 09:38:35 +0000 (11:38 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 27 Jun 2021 09:38:35 +0000 (11:38 +0200)
commitc19a28919fc969a68401079532fafa6b1e44b6f4
tree58dca170d7bb96141439e7c86e0d8a2792fc0c92
parent0813700de1af72173ad18202fcbd3eafce90d184
llvm-dwarfdump: Print warnings on invalid DWARF

llvm-dwarfdump was silent even when the format of DWARF was invalid
and/or llvm-dwarfdump did not understand/support some of the constructs.
This can be pretty confusing as llvm-dwarfdump is a tool for DWARF
producers+consumers development.

Review comments also by @dblaikie.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D104271
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug-entry-invalid.s [new file with mode: 0644]