aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-10-27 19:36:33 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-10-31 20:37:59 +0000
commita4cc0b7dd7dc27f6afb5d4e0338d953e36319c65 (patch)
treee5ecab8833e6385bc2d87b2b04f8d2ffc61b77bd /contrib
parentd1d94d968d30ce57674b7e3f2752657e1cd2e4b6 (diff)
downloadqemu-a4cc0b7dd7dc27f6afb5d4e0338d953e36319c65.zip
qemu-a4cc0b7dd7dc27f6afb5d4e0338d953e36319c65.tar.gz
qemu-a4cc0b7dd7dc27f6afb5d4e0338d953e36319c65.tar.bz2
contrib/plugins: enable debug on CONFIG_DEBUG_TCG
We used to rely on QEMU_CFLAGS to expose the debug flags but now this is synthesised by meson and only available to the main build. Add our own flags if we detect the build has been enabled with CONFIG_DEBUG_TCG (which is the default for --enable-debug anyway). Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20221027183637.2772968-28-alex.bennee@linaro.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/plugins/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/plugins/Makefile b/contrib/plugins/Makefile
index df3499f..23e0396 100644
--- a/contrib/plugins/Makefile
+++ b/contrib/plugins/Makefile
@@ -29,6 +29,7 @@ SONAMES := $(addsuffix .so,$(addprefix lib,$(NAMES)))
CFLAGS = $(GLIB_CFLAGS)
CFLAGS += -fPIC -Wall $(filter -W%, $(QEMU_CFLAGS))
CFLAGS += $(if $(findstring no-psabi,$(QEMU_CFLAGS)),-Wpsabi)
+CFLAGS += $(if $(CONFIG_DEBUG_TCG), -ggdb -O0)
CFLAGS += -I$(SRC_PATH)/include/qemu
all: $(SONAMES)