[all-commits] [llvm/llvm-project] 0156b6: Modify llvm-gsymutil to ignore invalid file indexe...
Greg Clayton via All-commits
all-commits at lists.llvm.org
Mon Nov 6 13:45:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0156b6ed6561f67f1b86ceef027908dd425e0615
https://github.com/llvm/llvm-project/commit/0156b6ed6561f67f1b86ceef027908dd425e0615
Author: Greg Clayton <gclayton at fb.com>
Date: 2023-11-06 (Mon, 06 Nov 2023)
Changed paths:
M llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
M llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
Log Message:
-----------
Modify llvm-gsymutil to ignore invalid file indexes (#71431)
DWARF produced by LTO and BOLT can sometimes be broken where file
indexes are beyond the end of the line table's file list in the
prologue. This patch allows llvm-gsymutil to convert this DWARF without
crashing, and emits errors when:
line table contains entries with an invalid file index (line entry will
be removed) inline functions that have invalid DW_AT_call_file file
indexes when there are no line table entries for a function and we fall
back to making a single line table entry from the functions
DW_AT_decl_file/DW_AT_decl_line attributes, we make sure the
DW_AT_decl_file attribute is valid before emitting it.
More information about the All-commits
mailing list