|
Last change
on this file was 206, checked in by Herwig Bauernfeind, 16 years ago |
|
Import Samba 3.3 branch at 3.0.0 level (psmedley's port)
|
|
File size:
287 bytes
|
| Line | |
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.