[PATCH] D37771: llvm-dwarfdump: automatically dump both regular and .dwo variant of sections

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 13:56:58 PDT 2017


aprantl created this revision.
Herald added subscribers: JDevlieghere, eraman.

Since users typically don't really care about the .dwo / non.dwo distinction, this patch makes it so `dwarfdump --debug-<info,...>` dumps `.debug_info` and (if available) also `.debug_info.dwo`. This simplifies the command line interface (I've removed all dwo-specific dump options)  and makes the tool friendlier to use.


https://reviews.llvm.org/D37771

Files:
  include/llvm/BinaryFormat/Dwarf.def
  include/llvm/DebugInfo/DIContext.h
  include/llvm/DebugInfo/DWARF/DWARFContext.h
  include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
  include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
  lib/DebugInfo/DWARF/DWARFContext.cpp
  test/DebugInfo/X86/fission-inline.ll
  test/DebugInfo/X86/fission-no-inlining.ll
  test/DebugInfo/X86/generate-odr-hash.ll
  test/DebugInfo/X86/live-debug-variables.ll
  test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll
  test/DebugInfo/X86/split-dwarf-multiple-cu-hash.ll
  test/DebugInfo/X86/split-dwarf-omit-empty.ll
  tools/llvm-dwarfdump/llvm-dwarfdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37771.114905.patch
Type: text/x-patch
Size: 16800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170912/f6662f0d/attachment.bin>


More information about the llvm-commits mailing list