projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99475e6
)
Handle text preceding backtrace better.
author
Ulrich Drepper
<drepper@redhat.com>
Mon, 24 Aug 1998 16:35:28 +0000
(16:35 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Mon, 24 Aug 1998 16:35:28 +0000
(16:35 +0000)
debug/catchsegv.sh
patch
|
blob
|
history
diff --git
a/debug/catchsegv.sh
b/debug/catchsegv.sh
index
48c447b
..
b949352
100755
(executable)
--- 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