[Libreoffice-commits] .: 2 commits - solenv/bin solenv/gbuild
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Jun 1 07:41:25 PDT 2011
solenv/bin/gdb_cxa-atexit_trace-stdout | 8 ++++++++
solenv/gbuild/CppunitTest.mk | 11 ++++++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
New commits:
commit 0e02b2c194ccdffe267356818712a9e4fef370de
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jun 1 12:20:08 2011 +0100
add a gdb script for debugging globals
diff --git a/solenv/bin/gdb_cxa-atexit_trace-stdout b/solenv/bin/gdb_cxa-atexit_trace-stdout
new file mode 100644
index 0000000..25cfe98
--- /dev/null
+++ b/solenv/bin/gdb_cxa-atexit_trace-stdout
@@ -0,0 +1,8 @@
+set pagination off
+break __cxa_atexit
+commands
+ bt
+ cont
+end
+run
+quit
commit d469a8a951cd2720cc417e72da2386f68f8d2d04
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon May 30 10:07:52 2011 +0100
make it easy to valgrind unit tests
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 3dbd33d..1bb4b06 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -39,11 +39,20 @@ gb_CppunitTest_GDBTRACE := $(GDBCPPUNITTRACE)
gb_CppunitTest__interactive := $(true)
endif
+ifneq ($(strip $(VALGRIND)),)
+gb_CppunitTest_VALGRINDTOOL := valgrind --tool=$(VALGRIND) --num-callers=50
+ifeq ($(strip $(VALGRIND)),memcheck)
+gb_CppunitTest_VALGRINDTOOL += --leak-check=yes
+G_SLICE := always-malloc
+export G_SLICE
+endif
+endif
+
# defined by platform
# gb_CppunitTest_TARGETTYPE
# gb_CppunitTest_get_filename
gb_CppunitTest_CPPTESTTARGET := $(call gb_Executable_get_target,cppunit/cppunittester)
-gb_CppunitTest_CPPTESTCOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) STAR_RESOURCEPATH=$(dir $(call gb_ResTarget_get_outdir_target,example)) $(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_CPPTESTTARGET)
+gb_CppunitTest_CPPTESTCOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) STAR_RESOURCEPATH=$(dir $(call gb_ResTarget_get_outdir_target,example)) $(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_CPPTESTTARGET)
gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filename,$(1))
# TODO: move this to platform under suitable name
More information about the Libreoffice-commits
mailing list