feat(Apps): Imrpove crashlogs on Linux. (#9131)

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
UltraNix
2021-11-11 16:23:03 +01:00
committed by GitHub
parent b7f8083915
commit 9e3332dc20
2 changed files with 6 additions and 0 deletions

View File

@@ -2,3 +2,6 @@ set logging on
set debug timestamp
run
bt
bt full
info thread
thread apply all backtrace full

View File

@@ -11,6 +11,9 @@ if [ $GDB_ENABLED -eq 1 ]; then
echo "set debug timestamp" >> "$GDB_FILE"
echo "run -c $3" >> "$GDB_FILE"
echo "bt" >> "$GDB_FILE"
echo "bt full" >> "$GDB_FILE"
echo "info thread" >> "$GDB_FILE"
echo "thread apply all backtrace full" >> "$GDB_FILE"
[ ! -f "$SYSLOG" ] && touch "$SYSLOG"
[ ! -f "$SYSERR" ] && touch "$SYSERR"