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
auth/credentials_krb5: let cli_credentials_set_ccache() use smb_force_krb5_cc_default()
[Samba.git]
/
selftest
/
gdb_run
blob
4cc26dd8dc182ee410030865e53606a6342f6d97
1
#!/bin/sh
2
3
ENV
=
"
$1
"
4
5
shift
1
6
7
TMPFILE
=
$
(
mktemp
--tmpdir
gdb_run.XXXXXXXXXX
)
8
test -n
"
${TMPFILE}
"
||
{
9
echo
"mktemp doesn't work"
1
>&
2
10
exit
1
11
}
12
13
cat
<<EOF >
$TMPFILE
14
run
15
bt
16
EOF
17
18
trap
"/bin/rm -f
$TMPFILE
"
EXIT
19
CMD
=
"gdb -x
$TMPFILE
--args $@"
20
echo
$CMD
21
eval
$ENV
"
$CMD
"