source: vendor/current/selftest/gdb_run

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 229 bytes
Line 
1#!/bin/sh
2
3ENV="$1"
4
5shift 1
6
7if test -z "$TMPDIR"; then
8 TMPDIR="/tmp"
9fi
10
11TMPFILE=$TMPDIR/gdb_run.$$
12cat << EOF > $TMPFILE
13run
14bt
15EOF
16
17trap "/bin/rm -f $TMPFILE" EXIT
18CMD="gdb -x $TMPFILE --args $@"
19echo $CMD
20eval $ENV "$CMD"
Note: See TracBrowser for help on using the repository browser.