llvm-project/llvm/lib/DebugInfo
James Henderson fe6983a75a [DebugInfo] Error if unsupported address size detected in line table
Prior to this patch, if a DW_LNE_set_address opcode was parsed with an
address size (i.e. with a length after the opcode) of anything other 1,
2, 4, or 8, an llvm_unreachable would be hit, as the data extractor does
not support other values. This patch introduces a new error check that
verifies the address size is one of the supported sizes, in common with
other places within the DWARF parsing.

This patch also fixes calculation of a generated line table's size in
unit tests. One of the tests in this patch highlighted a bug introduced
in 1271cde474, when non-byte operands were used as arguments for
extended or standard opcodes.

Reviewed by: dblaikie

Differential Revision: https://reviews.llvm.org/D73962
2020-02-14 11:08:12 +00:00
..
CodeView Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
DWARF [DebugInfo] Error if unsupported address size detected in line table 2020-02-14 11:08:12 +00:00
GSYM [build] Fix shared lib builds. 2020-02-13 22:09:52 +00:00
MSF Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
PDB Add missing newlines at EOF; NFC 2020-02-12 15:57:25 +00:00
Symbolize Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
CMakeLists.txt Add GSYM utility files along with unit tests. 2019-06-26 14:09:09 +00:00
LLVMBuild.txt Fix build in shared lib mode. 2019-06-26 15:46:48 +00:00