From patchwork Fri Oct 21 15:51:46 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: 617184 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1074723pvb; Fri, 21 Oct 2022 08:52:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49RrMadI6ltSu8iRhQ1OY5amrczvX5Uv/uVCtbDc84Uk8s37QcGoyERxs8a5UnnRiB/9TK X-Received: by 2002:a05:622a:1350:b0:39c:df55:4978 with SMTP id w16-20020a05622a135000b0039cdf554978mr16714790qtk.51.1666367543444; Fri, 21 Oct 2022 08:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666367543; cv=none; d=google.com; s=arc-20160816; b=Nw7dxVSEIOQAEdmBwnT3AQWvjv/Sc4J+LleT1iHJ+DtpDlkrUO2sugrETJvU7jerh1 dgpq6TWV2ixa2LC9xxr5l7+TaZyLvokjKU3A8zATGKmF/rt8g/GTTb5VxVNDNRzYxHyf 7HaSwfxe5B6d6ikjH3WIyDYT96bY53bgaOdV7JorPC7dgdz0Jr1nBlsFaqfM3Ni3Kp+g j8c5+G8xewk54/xPspIzw3glFG5vnzIHKkupA3GJYQaMEH8GELhXlFfOS8HE3P1P0Gk1 jooNTddkUZBgsoBRAxJ53dSvIDBrETRjMPICyOxnbf+okYNzZpCqPyX2Pky2r7mMEH7V H+dw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=3cHnjENqbl19ucdyg4MDPQoWXEcNKX05/tWyvwRo7Yc=; b=GkORnGE/WYSBxR1cEdlIdhgQOfD6+hjQlLQRKqYEHTB688s/xm7tECbj+fnE0P+oLm GGqNUe2c5LGxo0DwjjFkoQnyucloXKb4BXLm/GvykPG2HedbIFJpOb4VRBmF8aduXiMb uphPErzo1ys4CSFDFRJ4OAmjMpYGc+fixW2A4iuD7jxCGsUY9sEg48LEiQdlHPOgkxRy Vy3r3EFUN9wMTB26Cd0QLUYrpi8TqAeDLJLJ2AIUYrSpx1O9S0K9XuagwMRirH/85kLa jBuNLKPjm4A/vWE9f25wYmVmsdf3Pa9BJsxusZiO/ybwffgWxKw2JPzEqJ8kb22gzRAt FOIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t1IfSOvm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+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 iv7-20020ad45ce7000000b0049901af48d0si12974118qvb.474.2022.10.21.08.52.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Oct 2022 08:52:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+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=t1IfSOvm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+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 1oluJX-0006o9-Qm; Fri, 21 Oct 2022 11:52:03 -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 1oluJU-0006o0-GI for qemu-devel@nongnu.org; Fri, 21 Oct 2022 11:52:01 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oluJO-0003p6-GI for qemu-devel@nongnu.org; Fri, 21 Oct 2022 11:52:00 -0400 Received: by mail-wm1-x335.google.com with SMTP id r8-20020a1c4408000000b003c47d5fd475so5328536wma.3 for ; Fri, 21 Oct 2022 08:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3cHnjENqbl19ucdyg4MDPQoWXEcNKX05/tWyvwRo7Yc=; b=t1IfSOvmZhcSoIsjNlEQXJmJ3BbRGYCcu3G3rLGkXj0Py96/Tqt7xBh72deI+OAveb f4GvSOG3D6DE0gfUSmLq3xkA/0KGW282j1yhg5v1kjDBPJT8dipZMqpm2zZ03O6rdMKh szXed5Q2qeSsfsNO7MLIx6Zld18EnCClmcNME2kH8gbgWPZ5cxhKZpLExDyI0bViVJ0V 0pcaruhy/oG+/mEz6SRrH5BKsmd9/LlDRM2G1XXnrA/Plh2eOkHKwDhltzcThYyMk8So gohBcT654UZMRruxc53k8nHpc+IbS73NWEb4e2wcQ+95qTr3Sb4ZWoujrrYFfZZ5HEf9 DlXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3cHnjENqbl19ucdyg4MDPQoWXEcNKX05/tWyvwRo7Yc=; b=i83utrR47j23MSlh4hNXZllNxM6b/TObd30lEOrnwEwKKd2hKV6Ww/+tzOwhplH9ey ixs+2BPKsMW/46hislFSfDDlx8IlLLZvPn/7L79PQ5KUFfDS0SsTTtYE2cNhuJtDRx/u 1J6ZMvvUGMJiO720Y04PsS5dsWLu9jAI7V2D9MxW8YXrzV2+nX2EKOpefKHvASRg1Ipp 4Fsq+8Fe9Grpbhu3hwVqNDzLcgtmn2PlctjlQ6EhBdsTUeYRyb+AcGOZWo9V7SfdpBo3 EEblrzHMOuBnsn3tABrViu7CTAUbeXVWxnZjSIKC5/h5SYogezD3JdTfSLTcZvJloneQ GWVg== X-Gm-Message-State: ACrzQf3bv+ME/5+xmS1A9YzMfqMlTjxxok01doPxogT+4mRMZPTbx4x2 gB1B1nw0dnCm8l6EC4NKLcce4Q== X-Received: by 2002:a05:600c:a04:b0:3b4:f20e:63f4 with SMTP id z4-20020a05600c0a0400b003b4f20e63f4mr13638881wmp.201.1666367512125; Fri, 21 Oct 2022 08:51:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id i18-20020a5d5232000000b00236576c8eddsm1252123wra.12.2022.10.21.08.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 08:51:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2C89C1FFB7; Fri, 21 Oct 2022 16:51:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , Alexandre Iooss , Mahmoud Mandour Subject: [RFC PATCH] contrib/plugins: enable debug on CONFIG_DEBUG_TCG Date: Fri, 21 Oct 2022 16:51:46 +0100 Message-Id: <20221021155146.2729598-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.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, SPF_PASS=-0.001 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+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 Cc: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daudé --- contrib/plugins/Makefile | 1 + 1 file changed, 1 insertion(+) 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)