s4-selftest: Avoid duplicating the servers IP in the provision() sub arguments.
[samba.git] / selftest / gdb_run
1 #!/bin/sh
2
3 ENV="$1"
4
5 shift 1
6
7 if test -z "$TMPDIR"; then
8         TMPDIR="/tmp"
9 fi
10
11 TMPFILE=$TMPDIR/gdb_run.$$
12 cat << EOF  > $TMPFILE
13 run
14 bt
15 EOF
16
17 trap "/bin/rm -f $TMPFILE" EXIT
18 CMD="gdb -x $TMPFILE --args $@"
19 echo $CMD
20 eval $ENV "$CMD"