[Libreoffice-commits] .: solenv/bin solenv/inc

Caolán McNamara caolan at kemper.freedesktop.org
Wed Oct 20 12:42:38 PDT 2010


 solenv/bin/gdbtrycatchtrace |   20 ++++++++++++++++++++
 solenv/inc/settings.mk      |    6 +++++-
 2 files changed, 25 insertions(+), 1 deletion(-)

New commits:
commit d0b34e4de2bc048166c208a1132988a41e442d79
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Oct 20 20:36:02 2010 +0100

    make it easy to trace try/catches, etc. for cppunit tests

diff --git a/solenv/bin/gdbtrycatchtrace b/solenv/bin/gdbtrycatchtrace
new file mode 100644
index 0000000..e394b66
--- /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
diff --git a/solenv/inc/settings.mk b/solenv/inc/settings.mk
index e16f602..8d29cfb 100644
--- a/solenv/inc/settings.mk
+++ b/solenv/inc/settings.mk
@@ -1057,7 +1057,11 @@ JAVAMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/javamaker
 RDBMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/rdbmaker
 CLIMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/climaker
 
-CPPUNITTESTER=$(AUGMENT_LIBRARY_PATH_LOCAL) $(SOLARBINDIR)/cppunittester
+.IF "$(DEBUGCPPUNIT)" != ""
+GDBCPPUNITTRACE=gdb --command=$(SOLARENV)/bin/gdbtrycatchtrace --args
+.ENDIF
+
+CPPUNITTESTER=$(AUGMENT_LIBRARY_PATH_LOCAL) $(GDBCPPUNITTRACE) $(SOLARBINDIR)/cppunittester
 HELPEX=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/helpex
 LNGCONVEX=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/lngconvex
 HELPLINKER=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/HelpLinker


More information about the Libreoffice-commits mailing list