提交 16141775 authored 作者: Rupa Schomaker's avatar Rupa Schomaker

check that gdb is in path

use core var with gdb


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14954 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 3b181f0f
core=`ls -rt core.*` core=`ls -rt core.* 2> /dev/null`
if [ -z "$core" ] ; then if [ -z "$core" ] ; then
core=`ls -rt core` core=`ls -rt core 2> /dev/null`
fi fi
if [ -z "$core" ] ; then if [ -z "$core" ] ; then
core=`ls -rt freeswitch.core` core=`ls -rt freeswitch.core 2> /dev/null`
fi fi
if [ -z "$core" ] ; then if [ -z "$core" ] ; then
...@@ -13,6 +13,12 @@ if [ -z "$core" ] ; then ...@@ -13,6 +13,12 @@ if [ -z "$core" ] ; then
exit 255 exit 255
fi fi
if [ -z "which gdb" ] ; then
echo "Unable to locate gdb, is it installed?"
exit 255
fi
line="--------------------------------------------------------------------------------" line="--------------------------------------------------------------------------------"
mypwd=`pwd` mypwd=`pwd`
...@@ -55,7 +61,7 @@ svn stat | grep -v \? >> $post_file ...@@ -55,7 +61,7 @@ svn stat | grep -v \? >> $post_file
echo "GDB BACKTRACE:" >> $post_file echo "GDB BACKTRACE:" >> $post_file
echo $line >> $post_file echo $line >> $post_file
gdb /usr/local/freeswitch/bin/freeswitch `ls -rt core.* | tail -n1` \ gdb /usr/local/freeswitch/bin/freeswitch `echo $core | tail -n1` \
--eval-command="echo \n\n" \ --eval-command="echo \n\n" \
--eval-command="set pagination off" \ --eval-command="set pagination off" \
--eval-command="echo Stack Trace\n" \ --eval-command="echo Stack Trace\n" \
...@@ -85,7 +91,3 @@ pb=`ls [0-9]*` ...@@ -85,7 +91,3 @@ pb=`ls [0-9]*`
mv $post_file $tmpdir mv $post_file $tmpdir
echo "Finished." echo "Finished."
echo "Please report http://pastebin.freeswitch.org/$pb to the developers." echo "Please report http://pastebin.freeswitch.org/$pb to the developers."
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论