Merge pull request #3306 from mglae/le92_crash_log

kodi.sh: upgrade crash log information
This commit is contained in:
MilhouseVH 2019-02-21 23:27:52 +00:00 committed by GitHub
commit c71997a775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,11 @@ single_stacktrace()
find "$1" -name 'core.*kodi.bin.*' | while read core; do
echo "=====> Core file: "$core"" >> $FILE
echo " =========================================" >> $FILE
if [ -f /storage/.config/debug.enhanced ]; then
gdb /usr/lib/kodi/kodi.bin --core="$core" --batch -ex "thread apply all bt full" -ex "info registers" -ex "set print asm-demangle on" -ex "disassemble" 2>/dev/null >> $FILE
else
gdb /usr/lib/kodi/kodi.bin --core="$core" --batch -ex "thread apply all bt" 2>/dev/null >> $FILE
fi
rm -f "$core"
done
}