aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoranssih <anssih@svn>2010-10-28 19:07:51 +0000
committeranssih <anssih@svn>2010-10-28 19:07:51 +0000
commit70e489a92f4ed43a7fb4d788a93114baa4bfef38 (patch)
treed0a775fdf448a71573afdaaa9894091f4f351e34 /tools
parentf1270cd0795dab15257afaa32279f451fa422c0d (diff)
fixed: backtrace in crashlog when core name is "core"
This was a regression of r34954. Also, add a comment in xbmc.sh.in explaining the glob pattern to avoid this issue coming back in the future. git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35063 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rw-r--r--tools/Linux/xbmc.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in
index 5c240c77c1..25c62a809c 100644
--- a/tools/Linux/xbmc.sh.in
+++ b/tools/Linux/xbmc.sh.in
@@ -40,7 +40,8 @@ done
single_stacktrace()
{
- find "$1" -maxdepth $2 -name 'core.*' | while read core; do
+ # core filename is either "core.$PID" or "core"
+ find "$1" -maxdepth $2 -name 'core*' | while read core; do
LC_ALL=C gdb --core="$core" --batch 2> /dev/null | grep -q "^Core was generated by \`$LIBDIR/xbmc/xbmc.bin" || continue
echo "=====> Core file: "$core" ($(stat -c%y "$core"))" >> $FILE
echo " =========================================" >> $FILE