From aed33072148d755f6245651bf2f97df25933e5a8 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 3 Mar 2018 20:43:14 -0500 Subject: [PATCH] Enable GCC debug when in debug build --- src/Makefile_obj.in | 2 +- test_regress/Makefile_obj | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile_obj.in b/src/Makefile_obj.in index 874bc4ca3..1524b474c 100644 --- a/src/Makefile_obj.in +++ b/src/Makefile_obj.in @@ -78,7 +78,7 @@ ifeq ($(VL_DEBUG),) COPT = -O2 else # Debug -COPT = -ggdb -DVL_DEBUG +COPT = -ggdb -DVL_DEBUG -D_GLIBCXX_DEBUG # Debug & Profile: #LDFLAGS += -pg -g #COPT = -ggdb -pg -g diff --git a/test_regress/Makefile_obj b/test_regress/Makefile_obj index ee0bd6106..ce202f7cb 100644 --- a/test_regress/Makefile_obj +++ b/test_regress/Makefile_obj @@ -28,8 +28,12 @@ VPATH += ../../$(VM_USER_DIR) # Needed by DPI tests CPPFLAGS += -DVERILATOR=1 -# Needed by tracing routines +# Debugging CPPFLAGS += -DVL_DEBUG=1 +# Assertions disabled as SystemC libraries are not clean +#CPPFLAGS += -D_GLIBCXX_DEBUG + +# Needed by tracing routines CPPFLAGS += -DVM_PREFIX=$(VM_PREFIX) CPPFLAGS += -DVM_PREFIX_INCLUDE="<$(VM_PREFIX).h>" CPPFLAGS += $(CPPFLAGS_DRIVER)