diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-08-21 21:42:05 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-08-21 21:42:05 +0000 |
commit | 9abf0703b13c4d7547f2d5dbab86405cd401b7da (patch) | |
tree | 6e3be98c72db69eee503f20acf290172ce089b76 /testsuite/build_farm/backtrace | |
parent | 00ec57063460533b3074227b9df73ba781744253 (diff) | |
download | samba-9abf0703b13c4d7547f2d5dbab86405cd401b7da.tar.gz samba-9abf0703b13c4d7547f2d5dbab86405cd401b7da.tar.bz2 samba-9abf0703b13c4d7547f2d5dbab86405cd401b7da.zip |
Add tridge's backtrace script - it should at least work for systems with
gdb....
Andrew Bartlett
(This used to be commit 7cb080559eaf39fb0afd6d846bf56715f1303801)
Diffstat (limited to 'testsuite/build_farm/backtrace')
-rwxr-xr-x | testsuite/build_farm/backtrace | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/build_farm/backtrace b/testsuite/build_farm/backtrace new file mode 100755 index 0000000000..efaa9f2dcd --- /dev/null +++ b/testsuite/build_farm/backtrace @@ -0,0 +1,15 @@ +#!/bin/sh +# Modified version of tridge's backtrace script. +# we want everything on stderr, so the program is not disturbed +exec 1>&2 + +PID=$1 +TMPFILE=$prefix/backtrace.$$ +cat << EOF > $TMPFILE +set height 0 +up 8 +bt full +quit +EOF +gdb -x $TMPFILE $prefix/sbin/smbd $PID +/bin/rm -f $TMPFILE |