diff options
author | anssih <anssih@svn> | 2010-11-02 00:46:18 +0000 |
---|---|---|
committer | anssih <anssih@svn> | 2010-11-02 00:46:18 +0000 |
commit | 96e9e9ab98c150d4b07e2fb8d9f67e2f759c1093 (patch) | |
tree | 6e5093b1b84e3b9654fd5cc2800acb92a3d8df17 /tools/Linux | |
parent | ce85f00480401548b7a6195be48a1fc05b933514 (diff) |
added: note in linux crashlog if gdb is not installed
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35117 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rw-r--r-- | tools/Linux/xbmc.sh.in | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in index 25c62a809c..64cae55798 100644 --- a/tools/Linux/xbmc.sh.in +++ b/tools/Linux/xbmc.sh.in @@ -73,16 +73,20 @@ print_crash_report() echo "############## END SYSTEM INFO ##############" >> $FILE echo >> $FILE echo "############### STACK TRACE #################" >> $FILE - single_stacktrace "$PWD" 1 - # Find in plugins directories - if [ $XBMC_HOME ]; then - BASEDIR=$XBMC_HOME + if which gdb >/dev/null 2>&1; then + single_stacktrace "$PWD" 1 + # Find in plugins directories + if [ $XBMC_HOME ]; then + BASEDIR=$XBMC_HOME + else + BASEDIR="$LIBDIR/xbmc/" + fi + single_stacktrace "$BASEDIR" 5 + # find in user xbmc dir + single_stacktrace $HOME/.xbmc/ 5 else - BASEDIR="$LIBDIR/xbmc/" + echo "gdb not installed, can't get stack trace." >> $FILE fi - single_stacktrace "$BASEDIR" 5 - # find in user xbmc dir - single_stacktrace $HOME/.xbmc/ 5 echo "############# END STACK TRACE ###############" >> $FILE echo >> $FILE echo "################# LOG FILE ##################" >> $FILE |