Currently the basepath is removed only from the beginning of the string. When the symbol is inlined and there's multiple line outputs of addr2line, only the first line would have basepath removed. Change to remove the basepath prefix from all lines.
Showing the changes to scripts/decode_stacktrace.sh (1 of 1 file). Show all
Unified · Split
| @@ -87,8 +87,8 @@ parse_symbol() { · 86 unmodified lines | |||
| 87 | return | 87 | return |
| 88 | fi | 88 | fi |
| 89 | 89 | ||
| 90 | # Strip out the base of the path | 90 | # Strip out the base of the path on each line |
| 91 | code=${code#$basepath/} | 91 | code=$(while read -r line; do echo "${line#$basepath/}"; done <<< "$code") |
| 92 | 92 | ||
| 93 | # In the case of inlines, move everything to same line | 93 | # In the case of inlines, move everything to same line |
| 94 | code=${code//$'\n'/' '} | 94 | code=${code//$'\n'/' '} |