From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gproxy1-pub.mail.unifiedlayer.com (gproxy1-pub.mail.unifiedlayer.com [69.89.25.95]) by sourceware.org (Postfix) with ESMTPS id F18473833A2B for ; Sat, 17 Dec 2022 00:09:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F18473833A2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from cmgw10.mail.unifiedlayer.com (unknown [10.0.90.125]) by progateway3.mail.pro1.eigbox.com (Postfix) with ESMTP id 8F78D10047A98 for ; Sat, 17 Dec 2022 00:08:49 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id 6Kkzp9Et6R8oI6KkzpfX9x; Sat, 17 Dec 2022 00:08:49 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=DseTREz+ c=1 sm=1 tr=0 ts=639d0891 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=sHyYjHe8cH0A:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=mDV3o1hIAAAA:8 a=najkuZv5oedZK0baB9UA:9 a=_FVE-zBwftR9WsbkzFJk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gNsOGVUKBzPtJZ+akktYd8lomb5aVIlEvrmcPNs/hls=; b=xi0h5kGTq9BShVCTgIOZWVPBTA bOLfEDXjFuY6T5i1OgipU/hyszvIqujIJyv2wT141U5dgzWUuaIqyvnRZfu1kvy1QUjDkx0nI0ZtQ enaf3opN8z4LJGcXssXidzE+/; Received: from 97-122-76-186.hlrn.qwest.net ([97.122.76.186]:60554 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1p6Kkz-002h2t-D7; Fri, 16 Dec 2022 17:08:49 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 43/46] Use require target_can_use_run_cmd Date: Fri, 16 Dec 2022 17:08:15 -0700 Message-Id: <20221217000818.3729389-44-tom@tromey.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221217000818.3729389-1-tom@tromey.com> References: <20221217000818.3729389-1-tom@tromey.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.76.186 X-Source-L: No X-Exim-ID: 1p6Kkz-002h2t-D7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-76-186.hlrn.qwest.net (localhost.localdomain) [97.122.76.186]:60554 X-Source-Auth: tom+tromey.com X-Email-Count: 44 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3028.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This changes some tests to use "require target_can_use_run_cmd". --- gdb/testsuite/gdb.base/annota1.exp | 4 +--- gdb/testsuite/gdb.base/annota3.exp | 4 +--- gdb/testsuite/gdb.base/dprintf-execution-x-script.exp | 4 +--- gdb/testsuite/gdb.cp/annota2.exp | 4 +--- gdb/testsuite/gdb.cp/annota3.exp | 4 +--- gdb/testsuite/gdb.multi/bkpt-multi-exec.exp | 4 +--- 6 files changed, 6 insertions(+), 18 deletions(-) diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp index 675f3afe2d4..6c0630b4bdd 100644 --- a/gdb/testsuite/gdb.base/annota1.exp +++ b/gdb/testsuite/gdb.base/annota1.exp @@ -19,9 +19,7 @@ # This testcase cannot use runto_main because of the different prompt # we get when using annotation level 2. # -if ![target_can_use_run_cmd] { - return 0 -} +require target_can_use_run_cmd set breakpoints_invalid "\r\n\032\032breakpoints-invalid\r\n" diff --git a/gdb/testsuite/gdb.base/annota3.exp b/gdb/testsuite/gdb.base/annota3.exp index 4fae6f066ab..3502340060a 100644 --- a/gdb/testsuite/gdb.base/annota3.exp +++ b/gdb/testsuite/gdb.base/annota3.exp @@ -19,9 +19,7 @@ # This testcase cannot use runto_main because of the different prompt # we get when using annotation level 2. # -if ![target_can_use_run_cmd] { - return 0 -} +require target_can_use_run_cmd # diff --git a/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp b/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp index a8fa858cb3a..90b9ecaee5f 100644 --- a/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp +++ b/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp @@ -20,9 +20,7 @@ # part of this test. # Bail out if the target can't use the 'run' command. -if ![target_can_use_run_cmd] { - return 0 -} +require target_can_use_run_cmd standard_testfile diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp index 96ac2e7ffbd..102bda557fc 100644 --- a/gdb/testsuite/gdb.cp/annota2.exp +++ b/gdb/testsuite/gdb.cp/annota2.exp @@ -32,9 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ # This testcase cannot use runto_main because of the different prompt # we get when using annotation level 2. # -if ![target_can_use_run_cmd] { - return 0 -} +require target_can_use_run_cmd set breakpoints_invalid "\r\n\032\032breakpoints-invalid\r\n" set frames_invalid "\r\n\032\032frames-invalid\r\n" diff --git a/gdb/testsuite/gdb.cp/annota3.exp b/gdb/testsuite/gdb.cp/annota3.exp index f60bd469c7f..66e083ac7e5 100644 --- a/gdb/testsuite/gdb.cp/annota3.exp +++ b/gdb/testsuite/gdb.cp/annota3.exp @@ -32,9 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ # This testcase cannot use runto_main because of the different prompt # we get when using annotation level 2. # -if ![target_can_use_run_cmd] { - return 0 -} +require target_can_use_run_cmd # # line number where we need to stop in main diff --git a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp index 43700016b4e..8542fef8e34 100644 --- a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp +++ b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp @@ -13,9 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -if ![target_can_use_run_cmd] { - return -} +require target_can_use_run_cmd # Until "catch exec" is implemented on other targets... # -- 2.38.1