diff options
Diffstat (limited to 'tools/Linux/xbmc.sh.in')
-rw-r--r-- | tools/Linux/xbmc.sh.in | 3 |
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 |