mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
af7e3dadf9
(This used to be commit d2b9055bc032506849827d6fab2d2b9d35d132e2)
21 lines
229 B
Bash
Executable File
21 lines
229 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ENV="$1"
|
|
|
|
shift 1
|
|
|
|
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 $ENV "$CMD"
|