r22637: Install tdbbackup and tdbdump again.
[Samba.git] / source / script / gdb_run
blobbfefce1ac998a414ff0c3906435a3b8146e77480
1 #!/bin/sh
3 if test -z "$TMPDIR"; then
4 TMPDIR="/tmp"
5 fi
7 TMPFILE=$TMPDIR/gdb_run.$$
8 cat << EOF > $TMPFILE
9 run
11 quit
12 EOF
14 trap "/bin/rm -f $TMPFILE" EXIT
15 CMD="gdb -x $TMPFILE --args $@"
16 echo $CMD
17 eval "$CMD"