[compiler-rt] 7d20747 - [gwp_asan] Improve symbolizer script
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 1 10:37:17 PDT 2021
Author: Vitaly Buka
Date: 2021-07-01T10:37:07-07:00
New Revision: 7d207472030a244d540fa53e47a734675b289a94
URL: https://github.com/llvm/llvm-project/commit/7d207472030a244d540fa53e47a734675b289a94
DIFF: https://github.com/llvm/llvm-project/commit/7d207472030a244d540fa53e47a734675b289a94.diff
LOG: [gwp_asan] Improve symbolizer script
Show inlined functions.
Hide unhelpful DWARF related warnings.
Reviewed By: hctim
Differential Revision: https://reviews.llvm.org/D105230
Added:
Modified:
compiler-rt/lib/gwp_asan/scripts/symbolize.sh
Removed:
################################################################################
diff --git a/compiler-rt/lib/gwp_asan/scripts/symbolize.sh b/compiler-rt/lib/gwp_asan/scripts/symbolize.sh
index fad9620a676e3..6974ee816701b 100755
--- a/compiler-rt/lib/gwp_asan/scripts/symbolize.sh
+++ b/compiler-rt/lib/gwp_asan/scripts/symbolize.sh
@@ -25,7 +25,7 @@ while read -r line; do
if [ -z "$function_name" ]; then
# If the offset is binary-relative, just resolve that.
- symbolized="$(echo $function_offset | addr2line -e $binary_name)"
+ symbolized="$(echo $function_offset | addr2line -ie $binary_name)"
else
# Otherwise, the offset is function-relative. Get the address of the
# function, and add it to the offset, then symbolize.
@@ -41,7 +41,7 @@ while read -r line; do
# Add the function address and offset to get the offset into the binary.
binary_offset="$(printf "0x%X" "$((function_addr+function_offset))")"
- symbolized="$(echo $binary_offset | addr2line -e $binary_name)"
+ symbolized="$(echo $binary_offset | addr2line -ie $binary_name)"
fi
# Check that it symbolized properly. If it didn't, output the old line.
@@ -52,4 +52,4 @@ while read -r line; do
else
echo "${frame_number}${symbolized}"
fi
-done
+done 2> >(grep -v "addr2line: DWARF error: could not find variable specification")
More information about the llvm-commits
mailing list