Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle text preceding backtrace better.
  • Loading branch information
Ulrich Drepper committed Aug 24, 1998
1 parent 99475e6 commit c2228a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debug/catchsegv.sh
Expand Up @@ -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`
Expand All @@ -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

Expand Down

0 comments on commit c2228a5

Please sign in to comment.