aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranssih <anssih@svn>2010-10-28 19:09:04 +0000
committeranssih <anssih@svn>2010-10-28 19:09:04 +0000
commitae46fc5231753cb36462a288e01c7e2eaf608722 (patch)
treed65ae2cc16a5ce3c2e7a5c1977552224de957fbf
parent3e45bb69bc71ed19a92a098e6adf3b1982f5e9ca (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. (cherry picked from commit e4d03498642df8fd29b74affc7e49fe95616aa61) git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35064 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-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