From patchwork Fri Jan 15 13:08:12 2021 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: 363637 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp305495jap; Fri, 15 Jan 2021 05:42:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz87IwxHYrNYsT2oFeKvv8tvT/Bkk0stLnVaPyyn7c1P0I9dpRtuZ6NA7pE5AiTJtDoYH4a X-Received: by 2002:a25:1241:: with SMTP id 62mr18434853ybs.366.1610718126182; Fri, 15 Jan 2021 05:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610718126; cv=none; d=google.com; s=arc-20160816; b=Bln9PtPLxVZCeIrOMCvhGcP0woWBjsmfvcbf36KNus0g0IRPFgS3shjOnptyoWQpZM idDQkTso2jc+dSiiog3ZALo0OUPt4sd/zT565hxEOh1mBfZkR+NeB2uNawz2py0PzGYT Jlvtf0ndbzcmo5vcMo9lK+FIuEnvyVzOMDvki0Mt2hxDMX3tAnFnUm5mzyg/EjkGGean d/+Fy0kGqYhj2JvIcKtYea+6M3nOP/n1FVeZ3YYatHSllg01/UFKWhx1xUM7lo1NwsI4 sng+n6M8UUvgVzVP0pUmFMUAFX1E4P4f+NFYijYA16WkZ7cC5d2s3Fvgrut0wyTVLkpi TY4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=MngZD7MAUlTLKXGuVgx7HmpB6eRFsW1jUL6SSCJlos4=; b=HIp0SN83CBRGhZ8QTyEGh84pw+EfHUnYAfTib/FmCkiEjdJhUlrXTGSNcS27cxYs1w Jz3sOn8IzfVkxAvtcYIc+fHn+zxsI0TMCK8yOjxGDzi8tVw37Cn40W5T6IRWHCtROARK oWtxJTBowBKo1B1gwuyjOsSw3PQ+8czFM1D0kGsI1mHp7ZmWzGOBnzsTPnddKWLVOmsB 7wZDiKi3o7J03HSh5kjyA6lI+s8jX+xgC1A/mw3Vqn8tKPNQdEwR+ZXPPNn/JQAB/8Rf 9PjCgo2vXOsuh4yMnZLD4OoL/YcxEZqtuOoiBjs8dIY4gYIF88M91b3fHuWNfADbdz85 VLBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mAz4IzcN; 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=fail (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 184si8215629ybz.73.2021.01.15.05.42.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jan 2021 05:42:06 -0800 (PST) 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=fail header.i=@linaro.org header.s=google header.b=mAz4IzcN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0PMb-0001UD-JA for patch@linaro.org; Fri, 15 Jan 2021 08:42:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Ozx-00055U-Gm for qemu-devel@nongnu.org; Fri, 15 Jan 2021 08:18:41 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0Ozv-0002IS-Io for qemu-devel@nongnu.org; Fri, 15 Jan 2021 08:18:41 -0500 Received: by mail-wr1-x42a.google.com with SMTP id d13so9225724wrc.13 for ; Fri, 15 Jan 2021 05:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MngZD7MAUlTLKXGuVgx7HmpB6eRFsW1jUL6SSCJlos4=; b=mAz4IzcNWC3WECR6MTfbWLhLc0R1btqWr+oY87luKhUBrJNtQDiVYAN5011TyINzN0 pPKL+yxeu3dE9OkWa9DmWBHnNGwb2xewl+vO3d+uX/Ii0vIknHngbTOu8cZsd0xJ0iut pYLNMxdQ82fi+eJ7T9U4tGNTGzcnjQdGXLxg9KVp4GwG6/ID3+EM5unx3dIvqrDwTYUr M4YPThZUrH3EELiCbbX04dlyUlJMe2LJTyIY0w6KsHuecf19IU3D6xKQvD4GMeyiLqMP 1ZL7jqrL2a6kQC/3n1pTgzcG/J15CHIKwTUvRTleD0LDyyCwRBoujZhCBeDWxlm1tOf6 SaQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MngZD7MAUlTLKXGuVgx7HmpB6eRFsW1jUL6SSCJlos4=; b=rgKmKUkfGye43eL6hzJ7eswSR/8HWm/mx2ybpb6Gm8ndna5ST7/iyJc6j00da8csQy 5Wui4jBxlLzo9s8S1u6VBoUcX5TPYSPjm/KqRojjxvWbWD1QgSJ8ECVcY+PZ0FhiKK0K SVrTDcY2iFBXYu0j1p7ATCSU83mkju8OyyXqRWRv8yZhvpnQaiLcrvSPnHZu230ZMMcW e5WL9KiHXThfih4LxcjSoiUV87VWSE/eK52Byzu7uj50fQ5mfNMMmBuwpz5yBK65lkQr UBIzvHAVKg0FsQ2D6F6DpE1XratyntaTqOorAcLvRTpBXulvmiebChW3NWEqtFyGPPEt aKrA== X-Gm-Message-State: AOAM532twGr+lNw2ZEYvBieRSOczWOYjxK6bFJryOGwDk7bVCVtJlw7n 9KQ+y9O42E5NKw8jpwtAxxySxQ== X-Received: by 2002:adf:fd0c:: with SMTP id e12mr13141755wrr.61.1610716717039; Fri, 15 Jan 2021 05:18:37 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s13sm15767183wra.53.2021.01.15.05.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 05:18:33 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9019B1FF87; Fri, 15 Jan 2021 13:08:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 14/30] configure: gate our use of GDB to 8.3.1 or above Date: Fri, 15 Jan 2021 13:08:12 +0000 Message-Id: <20210115130828.23968-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210115130828.23968-1-alex.bennee@linaro.org> References: <20210115130828.23968-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The support of socket based debugging which we need for linux-user testing is only really stable as of 8.3.1 so lets gate our use of GDB on having a relatively modern version. For direct testing you can just point to a locally compiled version of gdb via configure, e.g.: ../../configure --gdb=$HOME/src/binutils-gdb.git/builds/all/install/bin/gdb Signed-off-by: Alex Bennée Message-Id: <20210108224256.2321-4-alex.bennee@linaro.org> -- 2.20.1 diff --git a/configure b/configure index 155dda124c..9f016b06b5 100755 --- a/configure +++ b/configure @@ -6166,8 +6166,11 @@ if test "$plugins" = "yes" ; then fi fi -if test -n "$gdb_bin" ; then - echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak +if test -n "$gdb_bin"; then + gdb_version=$($gdb_bin --version | head -n 1) + if version_ge ${gdb_version##* } 8.3.1; then + echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak + fi fi if test "$secret_keyring" = "yes" ; then