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:
parent
f8a2b032a7
commit
e84871dd32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user