From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 4543D3860744; Fri, 13 Jan 2023 20:37:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4543D3860744 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642249; bh=zWFBW5ntOl4lpKZy+8uOoMMyDJlKWMdVAj+k5X9zPNw=; h=From:To:Subject:Date:From; b=FJUTMCFZYuqqCrzRB/v7aUbbHmVeWXGAoQP251m/KPIYeWrEnfqnnl+CxoVy2/9mg quB+NPAx09aNo05v4hErFO+tGau/h6DvA3hHjZZKuqRTtMru0YX3Kfea9a4kGviMp2 latr4YUqR/LewgaLWW91ZoBxbFl5Ix7j/kKnbgJA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Use require target_can_use_run_cmd X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 465ee8475ef28147460fbe241c3b1dcd82d75fc4 X-Git-Newrev: ec1300f6ea8dfc432fae1c5d68ea1389d2d126a7 Message-Id: <20230113203729.4543D3860744@sourceware.org> Date: Fri, 13 Jan 2023 20:37:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dec1300f6ea8d= fc432fae1c5d68ea1389d2d126a7 commit ec1300f6ea8dfc432fae1c5d68ea1389d2d126a7 Author: Tom Tromey Date: Thu Dec 15 16:47:05 2022 -0700 Use require target_can_use_run_cmd =20 This changes some tests to use "require target_can_use_run_cmd". Diff: --- 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/an= nota1.exp index 49cbd6856d6..96698642675 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 =20 set breakpoints_invalid "\r\n\032\032breakpoints-invalid\r\n" =20 diff --git a/gdb/testsuite/gdb.base/annota3.exp b/gdb/testsuite/gdb.base/an= nota3.exp index 7aaf6df6dee..62efd1aff66 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 =20 =20 # diff --git a/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp b/gdb/te= stsuite/gdb.base/dprintf-execution-x-script.exp index 5a343fc9ad4..5b410f32a1f 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. =20 # 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 =20 standard_testfile =20 diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota= 2.exp index 160d26903d8..5116355049f 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 $s= rcfile \ # 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 =20 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/annota= 3.exp index 5a5f3ff38a4..5d8c152d33d 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 $s= rcfile \ # 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 =20 # # line number where we need to stop in main diff --git a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp b/gdb/testsuite/gd= b.multi/bkpt-multi-exec.exp index 30d049daa38..9ab1ef18559 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 . =20 -if ![target_can_use_run_cmd] { - return -} +require target_can_use_run_cmd =20 # Until "catch exec" is implemented on other targets... #