[all-commits] [llvm/llvm-project] e882ed: Fixed an issue where llvm-gsymutil would crash whe...
Greg Clayton via All-commits
all-commits at lists.llvm.org
Wed Jul 26 11:30:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e882edd5f1f81d5b9ffa4df8cb0eca18558407e3
https://github.com/llvm/llvm-project/commit/e882edd5f1f81d5b9ffa4df8cb0eca18558407e3
Author: Greg Clayton <gclayton at fb.com>
Date: 2023-07-26 (Wed, 26 Jul 2023)
Changed paths:
M llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
M llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
M llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
Log Message:
-----------
Fixed an issue where llvm-gsymutil would crash when parsing bad inline ranges.
If a function contains inline function ranges whose address ranges are not contained in the parent scope, then emit an error message and omit them from the final GSYM. Prior to this we would only test if an inline function's address range was within the concrete function's ranges. If we ran into a case where the inline range was within the function's ranges, but not within one of the parent inline function's ranges, then we would fail to produce a GSYM file and exit with an error.
The current code will emit full details on invalid inline ranges as they are being parsed and will omit any bad ranges from the final GSYM file.
Differential Revision: https://reviews.llvm.org/D155254
More information about the All-commits
mailing list