~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to testsuite/build_farm/backtrace

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Modified version of tridge's backtrace script.
 
3
# we want everything on stderr, so the program is not disturbed
 
4
exec 1>&2
 
5
 
 
6
PID=$1
 
7
TMPFILE=$prefix/backtrace.$$
 
8
cat << EOF  > $TMPFILE
 
9
set height 0
 
10
up 8
 
11
bt full
 
12
quit
 
13
EOF
 
14
gdb -x $TMPFILE $prefix/sbin/smbd $PID
 
15
/bin/rm -f $TMPFILE