File: backtrace

package info (click to toggle)
samba 3.0.24-6etch10
  • links: PTS
  • area: main
  • in suites: etch
  • size: 49,836 kB
  • ctags: 44,390
  • sloc: ansic: 335,711; sh: 8,133; perl: 7,045; makefile: 3,107; python: 2,370; exp: 1,147; yacc: 881; awk: 486; csh: 58; sed: 45
file content (15 lines) | stat: -rwxr-xr-x 287 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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