From 934952678ba68d8137f6855aa71fa593c3158b02 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 16 Apr 2016 19:05:25 +0200 Subject: fix crash in perfcheck Change-Id: I8e053f5f0c6994c44485f61f5b3dc489271b8c5f --- solenv/gbuild/CppunitTest.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'solenv') 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 -- cgit