repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r22637: Install tdbbackup and tdbdump again.
[Samba.git]
/
source
/
script
/
gdb_run
blob
bfefce1ac998a414ff0c3906435a3b8146e77480
1
#!/bin/sh
2
3
if
test -z
"
$TMPDIR
"
;
then
4
TMPDIR
=
"/tmp"
5
fi
6
7
TMPFILE
=
$TMPDIR
/
gdb_run.$$
8
cat
<< EOF >
$TMPFILE
9
run
10
bt
11
quit
12
EOF
13
14
trap
"/bin/rm -f
$TMPFILE
"
EXIT
15
CMD
=
"gdb -x
$TMPFILE
--args $@"
16
echo
$CMD
17
eval
"
$CMD
"