summaryrefslogtreecommitdiff
path: root/solenv/bin/gdbtrycatchtrace
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-20 20:36:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-20 20:36:02 +0100
commitde485fdd90d0ec1bf64941a49f2d1f48a4eb9dda (patch)
treefdb9f424ef01ed969f66ce24364742d0903fa2e2 /solenv/bin/gdbtrycatchtrace
parentd38215b91ada6f91dad0cb58171d7879dc85dff0 (diff)
make it easy to trace try/catches, etc. for cppunit tests
Diffstat (limited to 'solenv/bin/gdbtrycatchtrace')
-rw-r--r--solenv/bin/gdbtrycatchtrace20
1 files changed, 20 insertions, 0 deletions
diff --git a/solenv/bin/gdbtrycatchtrace b/solenv/bin/gdbtrycatchtrace
new file mode 100644
index 000000000000..e394b66eb6b3
--- /dev/null
+++ b/solenv/bin/gdbtrycatchtrace
@@ -0,0 +1,20 @@
+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