/[packages]/cauldron/xbmc/current/SOURCES/0001-added-note-in-linux-crashlog-if-gdb-is-not-installed.patch
ViewVC logotype

Contents of /cauldron/xbmc/current/SOURCES/0001-added-note-in-linux-crashlog-if-gdb-is-not-installed.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 78010 - (show annotations) (download)
Sun Mar 27 11:44:10 2011 UTC (13 years ago) by ennael
File size: 1578 byte(s)
imported package xbmc
1 From 53d3c9526ee156422ad4070022b7e0e0aec5f222 Mon Sep 17 00:00:00 2001
2 From: anssih <anssih@568bbfeb-2a22-0410-94d2-cc84cf5bfa90>
3 Date: Tue, 2 Nov 2010 00:46:18 +0000
4 Subject: [PATCH] added: note in linux crashlog if gdb is not installed
5
6 git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35117 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
7 ---
8 tools/Linux/xbmc.sh.in | 20 ++++++++++++--------
9 1 files changed, 12 insertions(+), 8 deletions(-)
10
11 diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in
12 index 25c62a8..64cae55 100644
13 --- a/tools/Linux/xbmc.sh.in
14 +++ b/tools/Linux/xbmc.sh.in
15 @@ -73,16 +73,20 @@ print_crash_report()
16 echo "############## END SYSTEM INFO ##############" >> $FILE
17 echo >> $FILE
18 echo "############### STACK TRACE #################" >> $FILE
19 - single_stacktrace "$PWD" 1
20 - # Find in plugins directories
21 - if [ $XBMC_HOME ]; then
22 - BASEDIR=$XBMC_HOME
23 + if which gdb >/dev/null 2>&1; then
24 + single_stacktrace "$PWD" 1
25 + # Find in plugins directories
26 + if [ $XBMC_HOME ]; then
27 + BASEDIR=$XBMC_HOME
28 + else
29 + BASEDIR="$LIBDIR/xbmc/"
30 + fi
31 + single_stacktrace "$BASEDIR" 5
32 + # find in user xbmc dir
33 + single_stacktrace $HOME/.xbmc/ 5
34 else
35 - BASEDIR="$LIBDIR/xbmc/"
36 + echo "gdb not installed, can't get stack trace." >> $FILE
37 fi
38 - single_stacktrace "$BASEDIR" 5
39 - # find in user xbmc dir
40 - single_stacktrace $HOME/.xbmc/ 5
41 echo "############# END STACK TRACE ###############" >> $FILE
42 echo >> $FILE
43 echo "################# LOG FILE ##################" >> $FILE
44 --
45 1.7.3
46

  ViewVC Help
Powered by ViewVC 1.1.30