[PATCH] D42481: [DebugInfo] Add basic support for DWARF 5 .debug_rnglists dumping

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 07:33:53 PST 2018


jhenderson created this revision.
jhenderson added reviewers: probinson, JDevlieghere, aprantl, dblaikie.
Herald added subscribers: hintonda, mgorny.

This change adds support to llvm-dwarfdump for dumping a DWARF5 .debug_rnglists section in a regular ELF file. It is not complete, in that several DW_RLE_* encodings are not currently supported, but does dump the header and the basic ranges for DW_RLE_start_length and DW_RLE_start_end encodings.

Obvious next steps are to add verbose dumping that dumps the raw encodings, rather than the interpreted contents, to add -verify support of the section (e.g. to show that the correct number of offsets is included), add dumping of .debug_rnglists.dwo, and to add support for other encodings.


Repository:
  rL LLVM

https://reviews.llvm.org/D42481

Files:
  include/llvm/BinaryFormat/Dwarf.def
  include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
  include/llvm/DebugInfo/DWARF/DWARFObject.h
  lib/DebugInfo/DWARF/CMakeLists.txt
  lib/DebugInfo/DWARF/DWARFContext.cpp
  lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
  test/tools/llvm-dwarfdump/X86/Inputs/debug_rnglists_invalid_header.s
  test/tools/llvm-dwarfdump/X86/Inputs/debug_rnglists_invalid_offset_entries.s
  test/tools/llvm-dwarfdump/X86/Inputs/debug_rnglists_long_length.s
  test/tools/llvm-dwarfdump/X86/Inputs/debug_rnglists_short_length.s
  test/tools/llvm-dwarfdump/X86/debug_rnglists.s
  test/tools/llvm-dwarfdump/X86/debug_rnglists_empty.s
  test/tools/llvm-dwarfdump/X86/debug_rnglists_invalid.test
  test/tools/llvm-dwarfdump/X86/debug_rnglists_unknown_encoding.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42481.131260.patch
Type: text/x-patch
Size: 18651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180124/a2753e99/attachment.bin>


More information about the llvm-commits mailing list