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