OSDN Git Service

[DWARF] Fixing a bug in DWARF v5 string offsets tables where the length encoded the...
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Thu, 10 May 2018 20:02:34 +0000 (20:02 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Thu, 10 May 2018 20:02:34 +0000 (20:02 +0000)
commit3dc44a9d48d1dad47912e645ab594bcbe9bb478b
treeb91174d7bb1d40f1d7852447f4ea07a064ff9a71
parent55a66360d5e9ee898a0c0630312e04a58e4718ae
[DWARF] Fixing a bug in DWARF v5 string offsets tables where the length encoded the contribution
length excluding the table header. Instead it must encode the contribution length minus the length
field itself.

Reviewer: JDevliegehere

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332030 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFUnit.h
lib/CodeGen/AsmPrinter/DwarfFile.cpp
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp
test/DebugInfo/X86/dwarfdump-str-offsets-invalid-3.s
test/DebugInfo/X86/dwarfdump-str-offsets-invalid-4.s
test/DebugInfo/X86/dwarfdump-str-offsets-invalid-6.s
test/DebugInfo/X86/dwarfdump-str-offsets-macho.s
test/DebugInfo/X86/dwarfdump-str-offsets.s
test/DebugInfo/X86/string-offsets-multiple-cus.ll
test/DebugInfo/X86/string-offsets-table.ll