mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
Handle text preceding backtrace better.
This commit is contained in:
parent
99475e6576
commit
c2228a5131
@ -79,9 +79,9 @@ if test $exval -eq 139 && test -f "$segv_output"; then
|
||||
IFS=$old_IFS
|
||||
;;
|
||||
esac
|
||||
(read line; echo "$line"
|
||||
read line; echo "$line"
|
||||
while read line; do
|
||||
sed '/Backtrace/q' "$segv_output"
|
||||
sed '1,/Backtrace/d' "$segv_output" |
|
||||
(while read line; do
|
||||
case "$line" in
|
||||
[*) addr=`echo $line | sed 's/^\[\(.*\)\]$/\1/'`
|
||||
complete=`addr2line -f -e "$prog" $addr 2>/dev/null`
|
||||
@ -94,7 +94,7 @@ if test $exval -eq 139 && test -f "$segv_output"; then
|
||||
*) echo "$line"
|
||||
;;
|
||||
esac
|
||||
done) < "$segv_output"
|
||||
done)
|
||||
rm -f "$segv_output"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user