From patchwork Tue Mar 17 17:50:46 2020 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: 184663 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4452957ile; Tue, 17 Mar 2020 11:12:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvQJE40Yx7P+ki3rwN1AcOpyyyuRp/b2+FpVzed2v3V4mHxAFnpAJvgsMQOQ4d4TkAWyY61 X-Received: by 2002:a37:47d3:: with SMTP id u202mr142856qka.264.1584468728221; Tue, 17 Mar 2020 11:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584468728; cv=none; d=google.com; s=arc-20160816; b=SQkIbh0WqKiWwYipJ+aNCzqwFnhIPQvAXINQeIuYw1TvMZuzndxje1IO3xHVfxYiPX 0KijXCuXBdeJO8gYceJZFZef9rToW6GIDPTAW9OeTxzF454D0lWh1KeVsu5JCLPhgu80 nkfXJmvnUXclPLNaaLeiDTGCGPY8fe+FyLH/+m6evYCJC9mAwnwrMQtvuYzU299Og49Q 4CbQ6qFbOIcWkfdjuK1x1NYDdorv7SEyNyvi+v0lH0Cls6pi0B/uVi58Yh82iSf5WdPq bN0TxRuVFqNwd+gXWVD8NqemekLWWdeJ6bTc2qI1G1x9VUuC8fykVLue5jmzzLym6Oes wczg== 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=w1gc8KtHt2EURW6KK00imtpWe3g+NUK+oh+i1JX/9Jo=; b=sXQtThqnA8sSJtYlu14BIyX49iBifxLV08/ubGfk4TdYJSc9rhuWFWC+CrY7SUttGX Swp2U4rYlFzMqcYqtOjwrssx/qGs1+8Zs+Gq4n9sK6EGOu63J4pr4dcyH2XhxwOfoMxm knWOmFeEQjNo3SEa5sqB8O0xZzYktAxqCDzGzcHWPXX7TKz1+G8+gF7a54bsp07yn9Kn 8TvzL1q5yDMsjc+dtLaVQ8bAhEO72MV7EfeyCpQrwqsdD/KYN7yM5SreBp0GB0Oa1w5P cwNCBgcPMgeMUcFTE6yTbcxRjgbfgeopeqvt8fHA7PLuXMDWBOXNUrENPWwIclxbchad cWNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=s4vMcThD; 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 o11si2340389qki.50.2020.03.17.11.12.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Mar 2020 11:12:08 -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=fail header.i=@linaro.org header.s=google header.b=s4vMcThD; 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]:38680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEGhD-0005DW-ML for patch@linaro.org; Tue, 17 Mar 2020 14:12:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36784) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEGUX-0005hV-Nq for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:59:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEGUW-0000eN-Hd for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:59:01 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEGUW-0000Xp-A8 for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:59:00 -0400 Received: by mail-wr1-x42d.google.com with SMTP id s5so26966433wrg.3 for ; Tue, 17 Mar 2020 10:59:00 -0700 (PDT) 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=w1gc8KtHt2EURW6KK00imtpWe3g+NUK+oh+i1JX/9Jo=; b=s4vMcThDB+TdFLvmymz4rpTcWeX7CjMHH3pIz+ehSPTznZxiSVY/5HEMjFCsQADu8i rAAOnRoVwE2LAnE+wDzw13I4FnCTZxJ0imXAtQaFZMXLd4ypiFhrp+w3oAhT3ip7TDgV sYV8sRWrtvUBe/iyBGXLtja6EtgAchMEJLkijBje1+Y1KxaWTXoGQnXFFDbO5NbpWPwd ewR8WzAO7DnXKB69qSkuIb7nCeR91eDQteZB8JAZGgmzKrlL1uDmQ6Y/bckdADRyQd1W Dv8h1ZMxCDomeI/26XYg3b+zxET2AQ3GaUW7bSEVyd5dKI33N4g0ksA+QB8KBQOgGoIR c+Kg== 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=w1gc8KtHt2EURW6KK00imtpWe3g+NUK+oh+i1JX/9Jo=; b=fJLZxD+OQK1OhKK68ulKwUVQznTv4bqiW0G/UhdAGUa6dqSJEU01KkHCAkCfu0kMk2 E1c+24uN3MPN1Xc9FZDPJTkEe8TIuudmldch3K9gJrJZ/RQgUwhb3wmF7hciYLEQanRJ oqzklihYQ7WmtmdGw9ZJDLIpAOZmD+/QZdxe6BK0UzjsIhuOedk6QXLZhR9FerRLeFPV TvkoUEAqrApQ/U2u25mxYqzI3U5G20BuVS7FABu0yo7rW33twONnsTWGH3MRmlEk0fJ2 8VtZkEUurrUXONlIjakl/Ud9xRbfHoFBKqTP/F6u3hx+Ix3vWMSUObUPoDZ4C/lMOD0N 5iVA== X-Gm-Message-State: ANhLgQ2d75cP25wDeqcqwgeGWssPbyjKg1eKUhoz9HfxmcI1qIKZiMKT 3YjRIwI1/H9rF1wroPHo0A2SExl4IYY= X-Received: by 2002:adf:ba48:: with SMTP id t8mr158619wrg.329.1584467939173; Tue, 17 Mar 2020 10:58:59 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a1sm5683791wro.72.2020.03.17.10.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 10:58:53 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7A0C61FF7E; Tue, 17 Mar 2020 17:50:55 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 21/28] configure: allow user to specify what gdb to use Date: Tue, 17 Mar 2020 17:50:46 +0000 Message-Id: <20200317175053.5278-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200317175053.5278-1-alex.bennee@linaro.org> References: <20200317175053.5278-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d 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: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is useful, especially when testing relatively new gdbstub features that might not be in distro packages yet. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200316172155.971-22-alex.bennee@linaro.org> -- 2.20.1 diff --git a/configure b/configure index eb49bb6680c..057994bce69 100755 --- a/configure +++ b/configure @@ -303,6 +303,7 @@ libs_qga="" debug_info="yes" stack_protector="" use_containers="yes" +gdb_bin=$(command -v "gdb") if test -e "$source_path/.git" then @@ -1588,6 +1589,8 @@ for opt do ;; --disable-fuzzing) fuzzing=no ;; + --gdb=*) gdb_bin="$optarg" + ;; *) echo "ERROR: unknown option $opt" echo "Try '$0 --help' for more information" @@ -1773,6 +1776,7 @@ Advanced options (experts only): --enable-plugins enable plugins via shared library loading --disable-containers don't use containers for cross-building + --gdb=GDB-path gdb to use for gdbstub tests [$gdb_bin] Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available: @@ -6734,6 +6738,7 @@ echo "libudev $libudev" echo "default devices $default_devices" echo "plugin support $plugins" echo "fuzzing support $fuzzing" +echo "gdb $gdb_bin" if test "$supported_cpu" = "no"; then echo @@ -7608,6 +7613,10 @@ if test "$plugins" = "yes" ; then fi fi +if test -n "$gdb_bin" ; then + echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak +fi + if test "$tcg_interpreter" = "yes"; then QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/tci $QEMU_INCLUDES" elif test "$ARCH" = "sparc64" ; then