[all-commits] [llvm/llvm-project] 9e09a5: [DebugInfo] Use Cursor to detect errors in debug l...
James Henderson via All-commits
all-commits at lists.llvm.org
Fri Jul 3 03:53:13 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9e09a54c692b4c5981046ed7d0a700ffdb9e1e27
https://github.com/llvm/llvm-project/commit/9e09a54c692b4c5981046ed7d0a700ffdb9e1e27
Author: James Henderson <james.henderson at sony.com>
Date: 2020-07-03 (Fri, 03 Jul 2020)
Changed paths:
M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
M llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
Log Message:
-----------
[DebugInfo] Use Cursor to detect errors in debug line prologue parser
Previously, the debug line parser would keep attempting to read data
even if it had run out of data to read. This meant errors in parsing
would often end up being reported as something else, such as an unknown
version or malformed directory/filename table. This patch fixes the
issues by using the Cursor API to capture errors.
Reviewed by: labath
Differential Revision: https://reviews.llvm.org/D83043
More information about the All-commits
mailing list