From 70e489a92f4ed43a7fb4d788a93114baa4bfef38 Mon Sep 17 00:00:00 2001 From: anssih Date: Thu, 28 Oct 2010 19:07:51 +0000 Subject: 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 --- tools/Linux/xbmc.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3