[PATCH] D77145: [DebugInfo] Fix reading location tables of v5 units in DWP.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 31 07:44:48 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: dblaikie, jhenderson, probinson, aprantl.
ikudrin added projects: LLVM, debug-info.
Herald added a subscriber: hiraditya.
ikudrin added a parent revision: D75929: [DebugInfo] Support DWARFv5 index sections..
ikudrin added a child revision: D77146: [DebugInfo] Fix reading location tables headers of v5 units in DWP..

Without the patch, all version 5 compile units in a DWP file read location tables from the beginning of a .debug_loclists.dwo section. The patch fixes that by adjusting the reading offset the same way as for pre-v5 units. The section identifier to find the contribution entry corresponds to the version of the unit.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77145

Files:
  llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
  llvm/test/DebugInfo/X86/dwp-v2-loc.s
  llvm/test/DebugInfo/X86/dwp-v5-loclists.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77145.253882.patch
Type: text/x-patch
Size: 10766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200331/5c35f1c6/attachment-0001.bin>


More information about the llvm-commits mailing list