summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/backtrace
diff options
context:
space:
mode:
authorvorlon <vorlon@alioth.debian.org>2007-11-21 17:44:34 +0000
committervorlon <vorlon@alioth.debian.org>2007-11-21 17:44:34 +0000
commit951fa9619c10959654b4f7d69c08722f1e76db71 (patch)
tree38907f3881253efb6119e4ac316f59548d9539e7 /testsuite/build_farm/backtrace
parent6e61533d519c58d0a6360e20d42102b61dd0ddcb (diff)
downloadsamba-951fa9619c10959654b4f7d69c08722f1e76db71.tar.gz
merge upstream 3.0.27a into svn
git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@1586 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'testsuite/build_farm/backtrace')
-rwxr-xr-xtestsuite/build_farm/backtrace15
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