From patchwork Mon Oct 31 13:10:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 620241 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2820590pvb; Mon, 31 Oct 2022 06:23:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ywYS5qzgDLG6LFm2Go7ZvRDTfXnNB9D4QsOAbTsDYSoIovDrXB/ph9E8qN0RV/7Qnx1sj X-Received: by 2002:ae9:e30c:0:b0:6fa:dc:dd4c with SMTP id v12-20020ae9e30c000000b006fa00dcdd4cmr2401768qkf.232.1667222603816; Mon, 31 Oct 2022 06:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667222603; cv=none; d=google.com; s=arc-20160816; b=pWXK43+BOgGQqxK4gbOt2VnXOaLTNtAvtl662GkS8jF2rhFVPot6yAW164EP3FoZ02 7y4+95q2dCcoiZbaN5l4DHCeip2HqmA85qECKrROTWWrHByqSKtXItoy3s2s4hDtJGJv iH7eTxRZI9EC0TtDnJVrjh2smow6ujpo+kvRK9e5Q74PSDvNxNPeK0dI7xxlwDtDNp+a GVpIJ0CVVbz5mBsYxxgy9Guw201QicvyYm/4jc0s22+X3N8sXKtLl8sl24Gc3aaZXMfl 6G165J1F3qMtq35znOHF5y+GHnYMB4shWon987L9fRyPoI7gT5PCw9U2r8abIFpoy/Ny fNHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bA91MP2QN6W9BeOl6D0Gz9Ie0TrwUCWVor1t5nK6BWg=; b=XP5lujcAGPUg8zFstkYbLKdS592/BFXATK61HS5V6OtEBuOgGONQuzi1RWJ71TfIV9 glXJsyRlPutraPCYcrOraESOHAi5/OhAVCR7NZiXqum9pN93Omc9PDGLxaBvbQ/E45Mf Ssf/hxTolt+8DLo1rSb9y4pg+boU+216YxJ0b5/Czp949VZoen/UH1zr52vMIYXeX+Wc O/e4UrSk1l/W3LcVLbhINRdUZO2cN/5WcMHH+TosidRYnXkW9fTnr9i+ZzI4QwQuzIeP KryOQSjfeZJeZW0MXhQxysIUgIlzwNkXHYYMtvErt+y7Hn+jBiqcpqin3UVZ5AhzU6SH pFKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z2uEeEU4; spf=pass (google.com: domain of qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x6-20020a05620a258600b006ee7ab1ecd6si4123094qko.194.2022.10.31.06.23.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Oct 2022 06:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z2uEeEU4; spf=pass (google.com: domain of qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opUi9-0004DA-G3; Mon, 31 Oct 2022 09:20:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUhu-00030n-QJ for qemu-devel@nongnu.org; Mon, 31 Oct 2022 09:20:03 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opUhn-0005On-5Q for qemu-devel@nongnu.org; Mon, 31 Oct 2022 09:20:01 -0400 Received: by mail-wr1-x42c.google.com with SMTP id a14so15946447wru.5 for ; Mon, 31 Oct 2022 06:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bA91MP2QN6W9BeOl6D0Gz9Ie0TrwUCWVor1t5nK6BWg=; b=Z2uEeEU4XxhShk7WVRDTOKQ5Kxtw74uJ1a0IqkzE8fYpsKPMOmR45sZmpp9OnaEKv1 f5XjRX0PsuHhMX+AKtXTp4O3l7TjtgbYNiDvuahfjV0jNzlFSRReFD4La3NgQktrNAFq C0zxv4i8JgW4EGxztarEjyo6v4CESjz3uPVbfBV4N8/zVRkn24TnqCGcmgWEaj0n/9g+ Z9W0VLa9tOBy1quuBDJjXqCLQjdo8Hpi3u41ZB7N7DuumI5+6CXc39g+1gw24VJtiT49 dUBcnmSeOneyU+v5Fg0j2aBtgEB+m7RgKLEasxOVHEeYIDG2NRRW6bTnDeYJfm5mb6hE BjEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bA91MP2QN6W9BeOl6D0Gz9Ie0TrwUCWVor1t5nK6BWg=; b=EO8qxVy3vnKGISUXgAqvgJUiUBQQEoy4Zmw0dG29bAN+ANMRURASJMxa/BecsjwB6o pLn687FiT6lH1ouYGaT3LGvsxFgUmJVFScyTM3MME4Am6yVCO2qRb4rlIM0mpGyL/rEt zaH5u4P/NJTaR036LqLrQFlvrGpmofIB+0md3LTl66LjfCd3Dq1WfZYBG1/tEtRKeiRa 5VHXQXEsSNLcNxR4mA5qOtnH9XYn1yy9f1+GmZlxWzJtKyf5GlItxp7gF6rlWVgcY4ZT CUf6tvw8UM7OWsy2chqjF/xd3DcnOJ21eJkQQAERg9WruBnDYLqHXipUuygAzJXbGLBF IKgg== X-Gm-Message-State: ACrzQf2huemWW1/J3N9zyN5GxFpUSh4g9vZ0ndjpQm9/Lfrk5MQecbF2 drbRyRO8DAl+4HixTfUEMob3Gw== X-Received: by 2002:a5d:64c3:0:b0:236:695d:39f7 with SMTP id f3-20020a5d64c3000000b00236695d39f7mr8365840wri.614.1667222392187; Mon, 31 Oct 2022 06:19:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id bv19-20020a0560001f1300b00236627c078esm7230338wrb.110.2022.10.31.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 06:19:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 98FE11FFD1; Mon, 31 Oct 2022 13:10:13 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Paolo Bonzini , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 28/31] contrib/plugins: enable debug on CONFIG_DEBUG_TCG Date: Mon, 31 Oct 2022 13:10:07 +0000 Message-Id: <20221031131010.682984-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221031131010.682984-1-alex.bennee@linaro.org> References: <20221031131010.682984-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org 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 Reviewed-by: Philippe Mathieu-Daudé Cc: Paolo Bonzini Message-Id: <20221027183637.2772968-28-alex.bennee@linaro.org> diff --git a/contrib/plugins/Makefile b/contrib/plugins/Makefile index df3499f4f2..23e0396687 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)