[PATCH] D78555: [DebugInfo][DWARF64] Fix dumping pre-standard .debug_str_offsets.dwo sections.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 05:54:39 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: dblaikie, jhenderson, wolfgangp, probinson.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: hiraditya, aprantl.

The sizes of offsets in the `.debug_str_offsets.dwo` section depend on the format of compilation or type units referencing them: 4 bytes for DWARF32 units and 8 bytes for DWARF64 ones. The fix uses parsed units to determine the actual size of offsets in the corresponding part of the `.debug_str_offsets.dwo` section.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78555

Files:
  llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
  llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-dwarf64-dwo.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-dwarf64-dwp.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78555.258967.patch
Type: text/x-patch
Size: 15521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/5d9b1098/attachment.bin>


More information about the llvm-commits mailing list