aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-24 16:35:28 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-24 16:35:28 +0000
commitc2228a513135bb229cd9c9984e38e52143d5f6dd (patch)
tree9ebc1ac8dc93cb844dbcba2d5c68b14ebb62394f
parent99475e65761d954ade1acec61e12c8995a501c1a (diff)
downloadglibc-c2228a513135bb229cd9c9984e38e52143d5f6dd.tar
glibc-c2228a513135bb229cd9c9984e38e52143d5f6dd.tar.gz
glibc-c2228a513135bb229cd9c9984e38e52143d5f6dd.tar.bz2
glibc-c2228a513135bb229cd9c9984e38e52143d5f6dd.zip
Handle text preceding backtrace better.
-rwxr-xr-xdebug/catchsegv.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug/catchsegv.sh b/debug/catchsegv.sh
index 48c447b039..b949352eee 100755
--- a/debug/catchsegv.sh
+++ b/debug/catchsegv.sh
@@ -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