You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
265 B
16 lines
265 B
6 years ago
|
#!/bin/sh
|
||
|
|
||
|
# we want everything on stderr, so the program is not disturbed
|
||
|
exec 1>&2
|
||
|
|
||
|
PID=$1
|
||
|
TMPFILE=/tmp/gdb.$$
|
||
|
cat << EOF > $TMPFILE
|
||
|
set height 0
|
||
|
bt full
|
||
|
thread apply all bt full
|
||
|
quit
|
||
|
EOF
|
||
6 years ago
|
gdb -n -batch -x $TMPFILE --pid $PID < /dev/null 2>&1
|
||
6 years ago
|
/bin/rm -f $TMPFILE
|