[PATCH] D79997: [DebugInfo] Dump fields according to their formats.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 05:53:21 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: probinson, dblaikie, jhenderson, aprantl.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: cmtice, MaskRay, hiraditya.
ikudrin updated this revision to Diff 264213.
ikudrin added a comment.
ikudrin added a child revision: D78208: [DebugInfo] Report the format of the DWARF64 sections..

- Add test `DebugInfo/X86/debug-frame-dwarf64.s`


This patch changes dumping fields of debugging tables which have different sizes in DWARF32 and DWARF64 formats, and which were reported as 8-digit hex values so that they use widths of 8 or 16 digits according to the format of the corresponding table. Other cases are left unaffected by this change, in particular:

- Fields of `.debug_names`, because they are printed with floating width without leading zeroes;
- Abbreviation and type offsets in compilation and type units, because they use the width of 4 digits in dumping.


https://reviews.llvm.org/D79997

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFDebugPubTable.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
  llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp
  llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp
  llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
  llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp
  llvm/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
  llvm/test/DebugInfo/X86/debug-frame-dwarf64.s
  llvm/test/DebugInfo/X86/dwarfdump-debug-aranges.s
  llvm/test/DebugInfo/X86/dwarfdump-debug-loclists-dwarf64.s
  llvm/test/DebugInfo/X86/dwarfdump-debug-pubnames.s
  llvm/test/DebugInfo/X86/dwarfdump-header-64.s
  llvm/test/DebugInfo/X86/dwarfdump-rnglists-dwarf64.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-macho.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-dwarf64-dwo.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-dwarf64-dwp.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets.s
  llvm/test/DebugInfo/X86/dwp-dwarf64.s
  llvm/test/DebugInfo/dwarfdump-64-bit-dwarf.test
  llvm/test/tools/llvm-dwarfdump/X86/debug_info_min_dwarf64.s
  llvm/test/tools/llvm-dwarfdump/X86/debug_line_dwarf64_large_table.s
  llvm/test/tools/llvm-dwarfdump/X86/debug_rnglists_dwarf64.s
  llvm/test/tools/llvm-dwarfdump/X86/typeunit-v4-dwarf64.s
  llvm/test/tools/llvm-dwarfdump/X86/typeunit-v5-dwarf64.s
  llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79997.264213.patch
Type: text/x-patch
Size: 36825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200515/f73bb08c/attachment-0001.bin>


More information about the llvm-commits mailing list