git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12279 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-02-25 17:14:44 +00:00
parent 85c265666d
commit c4ccb10bbb
1 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
fspid=$(cat /opt/freeswitch/log/freeswitch.pid)
gcore -o /opt/freeswitch/log/freeswitch.gcore $fspid && \
gdb /opt/freeswitch/bin/freeswitch \
-c /opt/freeswitch/log/freeswitch.gcore.$fspid \
fspid=$(cat /usr/local/freeswitch/log/freeswitch.pid)
gcore -o /usr/local/freeswitch/log/freeswitch.gcore $fspid && \
gdb /usr/local/freeswitch/bin/freeswitch \
-c /usr/local/freeswitch/log/freeswitch.gcore.$fspid \
--eval-command='set pagination off' \
--eval-command='bt' \
--eval-command='bt full' \
--eval-command='thread apply all bt' \
--eval-command='thread apply all bt full' \
--eval-command='quit'
#rm /opt/freeswitch/log/freeswitch.gcore.$fspid
#rm /usr/local/freeswitch/log/freeswitch.gcore.$fspid