1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r8680: try harder to find the binary for gdb in the backtrace

This commit is contained in:
Andrew Tridgell 2005-07-21 12:35:00 +00:00 committed by Gerald (Jerry) Carter
parent f8a2b032a7
commit e84871dd32

View File

@ -13,5 +13,16 @@ bt full
quit
EOF
if [ ! -f $PROG ]; then
PROG=`which $PROG`
fi
if [ ! -f $PROG ]; then
PROG=/proc/$PID/exe
fi
if [ ! -f $PROG ]; then
echo "Unable to find binary"
exit 1
fi
gdb -batch -x $TMPFILE $PROG $PID < /dev/null
/bin/rm -f $TMPFILE