summaryrefslogtreecommitdiffstats
path: root/solenv/bin/gdbtrycatchtrace
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/gdbtrycatchtrace')
-rw-r--r--solenv/bin/gdbtrycatchtrace21
1 files changed, 21 insertions, 0 deletions
diff --git a/solenv/bin/gdbtrycatchtrace b/solenv/bin/gdbtrycatchtrace
new file mode 100644
index 000000000..636985a14
--- /dev/null
+++ b/solenv/bin/gdbtrycatchtrace
@@ -0,0 +1,21 @@
+set pagination off
+catch throw
+commands
+ bt
+ cont
+end
+catch catch
+commands
+ bt
+ cont
+end
+echo log will be saved as gdbtrace.log, this will take some time, patience...\n
+set logging redirect on
+set logging file gdbtrace.log
+set logging on
+set logging overwrite on
+run
+bt
+quit
+set logging off
+echo log is saved as gdbtrace.log\n