mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
17 lines
205 B
Plaintext
17 lines
205 B
Plaintext
|
#!/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"
|