[all-commits] [llvm/llvm-project] af11c5: [DebugInfo] Fix reading DWARFv5 type units in DWP.

Igor Kudrin via All-commits all-commits at lists.llvm.org
Tue Apr 7 23:15:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: af11c556dbcee06b4511a6c5761f4cbd543d0047
      https://github.com/llvm/llvm-project/commit/af11c556dbcee06b4511a6c5761f4cbd543d0047
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    A llvm/test/DebugInfo/X86/dwp-v5-tu.s
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

  Log Message:
  -----------
  [DebugInfo] Fix reading DWARFv5 type units in DWP.

In DWARFv5, type units are stored in .debug_info sections, along with
compilation units, and they are distinguished by the unit_type field
in the header, not by the name of the section. It is impossible to
associate the correct index section of a DWP file with the unit before
the unit's header is read. This patch fixes reading DWARFv5 type units
by parsing the header first and then applying the index entry according
to the actual unit type.

Differential Revision: https://reviews.llvm.org/D77552




More information about the All-commits mailing list