[gwp_asan] Improve symbolizer script
Show inlined functions.
Hide unhelpful DWARF related warnings.
Reviewed By: hctim
Differential Revision: https://reviews.llvm.org/D105230
GitOrigin-RevId: 7d207472030a244d540fa53e47a734675b289a94
diff --git a/scripts/symbolize.sh b/scripts/symbolize.sh
index fad9620..6974ee8 100755
--- a/scripts/symbolize.sh
+++ b/scripts/symbolize.sh
@@ -25,7 +25,7 @@
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 @@
# 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 @@
else
echo "${frame_number}${symbolized}"
fi
-done
+done 2> >(grep -v "addr2line: DWARF error: could not find variable specification")