Tiny simplification to dom_sid_string_buf
[Samba.git] / selftest / gdb_run
blob8ad101ed60a68b47d3b1c67763092eabfd24570a
1 #!/bin/sh
3 ENV="$1"
5 shift 1
7 if test -z "$TMPDIR"; then
8 TMPDIR="/tmp"
9 fi
11 TMPFILE=$TMPDIR/gdb_run.$$
12 cat << EOF > $TMPFILE
13 run
15 EOF
17 trap "/bin/rm -f $TMPFILE" EXIT
18 CMD="gdb -x $TMPFILE --args $@"
19 echo $CMD
20 eval $ENV "$CMD"