1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/script/gdb_run
Andrew Bartlett 2606996653 r25354: Thanks to Amin Azez <azez@ufomechanic.net> for finally getting me to
fix a provision without an smb.conf already setup.

Andrew Bartlett
(This used to be commit a00044d229)
2007-10-10 15:07:16 -05:00

17 lines
205 B
Bash
Executable File

#!/bin/sh
if test -z "$TMPDIR"; then
TMPDIR="/tmp"
fi
TMPFILE=$TMPDIR/gdb_run.$$
cat << EOF > $TMPFILE
run
bt
EOF
trap "/bin/rm -f $TMPFILE" EXIT
CMD="gdb -x $TMPFILE --args $@"
echo $CMD
eval "$CMD"