git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed logic bug
[tridge/junkcode.git]
/
backtrace
1
#!/bin/sh
2
3
# we want everything on stderr, so the program is not disturbed
4
exec 1>&2
5
6
PID=$1
7
TMPFILE=/tmp/backtrace.$$
8
cat << EOF > $TMPFILE
9
set height 0
10
up 8
11
bt full
12
quit
13
EOF
14
gdb -x $TMPFILE /proc/$PID/exe $PID
15
/bin/rm -f $TMPFILE