We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d35b60 commit f643b9eCopy full SHA for f643b9e
scripts/decode_stacktrace.sh
@@ -56,7 +56,11 @@ parse_symbol() {
56
if [[ "${cache[$module,$name]+isset}" == "isset" ]]; then
57
local base_addr=${cache[$module,$name]}
58
else
59
- local base_addr=$(nm "$objfile" | grep -i ' t ' | awk "/ $name\$/ {print \$1}" | head -n1)
+ local base_addr=$(nm "$objfile" | awk '$3 == "'$name'" && ($2 == "t" || $2 == "T") {print $1; exit}')
60
+ if [[ $base_addr == "" ]] ; then
61
+ # address not found
62
+ return
63
+ fi
64
cache[$module,$name]="$base_addr"
65
fi
66
# Let's start doing the math to get the exact address into the
0 commit comments