[PATCH] D36270: [llvm-dwarfdump] - Change how dwarfdump dumps .debug_ranges

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 08:37:57 PDT 2017


grimar created this revision.
Herald added a subscriber: aprantl.

It was raised in https://reviews.llvm.org/D36097 thread that we currently do not have
testcases for section index API in libDebugInfo.

Idea was to add some useful functionality for any tool,
like llvm-dwarfdump which will use that API and require testcases.

Patch introduces next changes:

1. Teaches dumper of .debug_ranges to render range section index.
2. Teaches dumper about address selection entry and how to render entries properly if section contains them. (previously it did not show result range properly, because did not add base address to result).
3. Cosmetic: adds nice header.


https://reviews.llvm.org/D36270

Files:
  lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp
  test/DebugInfo/X86/dwarfdump-ranges-baseentry.s
  test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s
  test/DebugInfo/dwarfdump-ranges.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36270.109568.patch
Type: text/x-patch
Size: 10181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170803/31cbe17a/attachment.bin>


More information about the llvm-commits mailing list