[DWARFDebugLine] Check for (EOF) errors when parsing v5 content descriptors
authorPavel Labath <pavel@labath.sk>
Mon, 23 Mar 2020 10:40:25 +0000 (11:40 +0100)
committerPavel Labath <pavel@labath.sk>
Tue, 14 Apr 2020 14:02:56 +0000 (16:02 +0200)
commit100483b969b816e71cdfadfc591203c77e3e3fc7
tree64e83b19374195a181a3d32926452f3b32204db5
parentf8a42bca2812fb602b0f2f24ce60f8216f6ddf87
[DWARFDebugLine] Check for (EOF) errors when parsing v5 content descriptors

Summary:
Without that we could be silently reading zeroes, as that's the default
DataExtractor behavior. The entire parse would still most likely fail,
but it would do that with a seemingly unrelated/nonsensical error
message.

Reviewers: dblaikie, probinson, jhenderson

Subscribers: hiraditya, MaskRay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77554
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_line_short_prologue.s [new file with mode: 0644]