1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/testsuite/build_farm/backtrace
Andrew Bartlett 9abf0703b1 Add tridge's backtrace script - it should at least work for systems with
gdb....

Andrew Bartlett
(This used to be commit 7cb080559e)
2002-08-21 21:42:05 +00:00

16 lines
287 B
Bash
Executable File

#!/bin/sh
# Modified version of tridge's backtrace script.
# we want everything on stderr, so the program is not disturbed
exec 1>&2
PID=$1
TMPFILE=$prefix/backtrace.$$
cat << EOF > $TMPFILE
set height 0
up 8
bt full
quit
EOF
gdb -x $TMPFILE $prefix/sbin/smbd $PID
/bin/rm -f $TMPFILE