[DWARF v5] Support for verbose dumping of .debug_rnglist entries
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Thu, 8 Mar 2018 20:52:35 +0000 (20:52 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Thu, 8 Mar 2018 20:52:35 +0000 (20:52 +0000)
commita0729d412690d9532bb0e4a1a8cc1633aa63aa06
tree7d1fdbfaedb1e36e10d5b7f13e66211451d1884d
parent2ee7b9349dafb9bbc2350473314fa8723efb3a43
[DWARF v5] Support for verbose dumping of .debug_rnglist entries

Adding verbose dumping to the recent implementation of dumping of v5 range list entries.
We're capturing the entries as is as they come in during extraction, including their file offset,
so we can dump them in more detail.
The offset table entries which are table-relative are shown as is (as in non-verbose mode)
and with the actual file offset they map to.

Reviewers: dblaikie, aprantl, jdevlieghere, jhenderson

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D43366

llvm-svn: 327059
llvm/include/llvm/BinaryFormat/Dwarf.h
llvm/include/llvm/DebugInfo/DIContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
llvm/lib/BinaryFormat/Dwarf.cpp
llvm/lib/DebugInfo/DWARF/DWARFAddressRange.cpp
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
llvm/test/tools/llvm-dwarfdump/X86/Inputs/debug_rnglists_DWARF64.s [new file with mode: 0644]
llvm/test/tools/llvm-dwarfdump/X86/debug_rnglists.s
llvm/test/tools/llvm-dwarfdump/X86/debug_rnglists_invalid.s