From 9e3332dc208215f60d62b6eef3c9e804464708da Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Thu, 11 Nov 2021 16:23:03 +0100 Subject: [PATCH] feat(Apps): Imrpove crashlogs on Linux. (#9131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Stefano Borzì --- apps/startup-scripts/gdb.conf | 3 +++ apps/startup-scripts/starter | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/startup-scripts/gdb.conf b/apps/startup-scripts/gdb.conf index bcedc28ff..34c1829fd 100644 --- a/apps/startup-scripts/gdb.conf +++ b/apps/startup-scripts/gdb.conf @@ -2,3 +2,6 @@ set logging on set debug timestamp run bt +bt full +info thread +thread apply all backtrace full diff --git a/apps/startup-scripts/starter b/apps/startup-scripts/starter index dcb5a5c97..c29af3e1a 100644 --- a/apps/startup-scripts/starter +++ b/apps/startup-scripts/starter @@ -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"