summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-16 19:05:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-16 19:07:27 +0200
commit934952678ba68d8137f6855aa71fa593c3158b02 (patch)
tree0b01bb9fd1505cf7710a325211159c518742476a /solenv
parent5b72c4ce7fce353f42e7c8d1798514d49997d920 (diff)
fix crash in perfcheck
Change-Id: I8e053f5f0c6994c44485f61f5b3dc489271b8c5f
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/CppunitTest.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index b90fb7fac7e4..313d24cf819e 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -40,6 +40,9 @@ endif
ifneq (,$(filter perfcheck,$(MAKECMDGOALS)))
$(if $(ENABLE_VALGRIND),,$(call gb_Output_error,Running performance tests with empty $$(ENABLE_VALGRIND) does not make sense))
gb_CppunitTest_VALGRINDTOOL := valgrind --tool=callgrind --dump-instr=yes --instr-atstart=no --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes
+ifneq ($(strip $(VALGRIND_GDB)),)
+gb_CppunitTest_VALGRINDTOOL += --vgdb=yes --vgdb-error=0
+endif
endif
# defined by platform