Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 96e9e9ab98c150d4b07e2fb8d9f67e2f759c1093 1 parent ce85f00
anssih authored
Showing with 12 additions and 8 deletions.
  1. +12 −8 tools/Linux/xbmc.sh.in
View
20 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
Please sign in to comment.
Something went wrong with that request. Please try again.