add scripts from MODAPP-89

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9169 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-07-24 16:14:20 +00:00
parent 9592b3fe67
commit 3c0842d438
2 changed files with 41 additions and 0 deletions

12
scripts/freeswitch-gcore Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
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 /usr/local/freeswitch/log/freeswitch.gcore.$fspid