From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 1C058388302B; Fri, 27 Jan 2023 01:30:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C058388302B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674783047; bh=D7Szcs7in9icaPyr2KpALiRnf6UCM2rDJGnWXMtm8GU=; h=From:To:Subject:Date:From; b=HST92DqnKYZYVx3iseTMZej/BJuZY1ZIYjovMqL7PutYZAdGdt2GolxICjzuUcN6U PH2KeznTp1ZcTalJ8Y26dUBtJ5DKsQhbnlpBFP+dj5ssgyesSed7w8h0ulzeU9h/kd AcCAGoWjQbD8OqktoRlo4IfGrmkzD3iyb0EIAbbA= 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 clean_restart in gdb.disasm X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 396b136e89e1a5b35a3b57a8662d190d1d9eef6d X-Git-Newrev: eefe81b52301076b6cdd5bec3664d1a4c4978b9f Message-Id: <20230127013047.1C058388302B@sourceware.org> Date: Fri, 27 Jan 2023 01:30:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Deefe81b52301= 076b6cdd5bec3664d1a4c4978b9f commit eefe81b52301076b6cdd5bec3664d1a4c4978b9f Author: Tom Tromey Date: Wed Jan 25 14:42:39 2023 -0700 Use clean_restart in gdb.disasm =20 Change gdb.disasm to use clean_restart more consistently. Diff: --- gdb/testsuite/gdb.disasm/am33.exp | 7 +------ gdb/testsuite/gdb.disasm/h8300s.exp | 4 +--- gdb/testsuite/gdb.disasm/hppa.exp | 7 +------ gdb/testsuite/gdb.disasm/mn10300.exp | 7 +------ gdb/testsuite/gdb.disasm/sh3.exp | 5 +---- gdb/testsuite/gdb.go/basic-types.exp | 6 +----- 6 files changed, 6 insertions(+), 30 deletions(-) diff --git a/gdb/testsuite/gdb.disasm/am33.exp b/gdb/testsuite/gdb.disasm/a= m33.exp index a278f395dd6..51936857ad0 100644 --- a/gdb/testsuite/gdb.disasm/am33.exp +++ b/gdb/testsuite/gdb.disasm/am33.exp @@ -795,12 +795,7 @@ proc dsp_autoincrement_tests { } { } } =20 -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile =20 call_tests movm_tests diff --git a/gdb/testsuite/gdb.disasm/h8300s.exp b/gdb/testsuite/gdb.disasm= /h8300s.exp index cd68a630959..17da0ad0b95 100644 --- a/gdb/testsuite/gdb.disasm/h8300s.exp +++ b/gdb/testsuite/gdb.disasm/h8300s.exp @@ -640,9 +640,7 @@ proc all_block_data_transfer_tests { } { } } =20 -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart all_set_machine_h8300s gdb_load $binfile =20 diff --git a/gdb/testsuite/gdb.disasm/hppa.exp b/gdb/testsuite/gdb.disasm/h= ppa.exp index 19fc08b6115..fadbb0a31e1 100644 --- a/gdb/testsuite/gdb.disasm/hppa.exp +++ b/gdb/testsuite/gdb.disasm/hppa.exp @@ -1365,12 +1365,7 @@ proc fmemLRbug_tests { } { } } =20 -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile =20 all_integer_memory_tests all_immediate_tests diff --git a/gdb/testsuite/gdb.disasm/mn10300.exp b/gdb/testsuite/gdb.disas= m/mn10300.exp index 425dc0615c8..5cf57ef12a8 100644 --- a/gdb/testsuite/gdb.disasm/mn10300.exp +++ b/gdb/testsuite/gdb.disasm/mn10300.exp @@ -529,12 +529,7 @@ proc sub_tests { } { } } =20 -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile =20 add_tests bcc_tests diff --git a/gdb/testsuite/gdb.disasm/sh3.exp b/gdb/testsuite/gdb.disasm/sh= 3.exp index 84479ce83e7..4be9bf57419 100644 --- a/gdb/testsuite/gdb.disasm/sh3.exp +++ b/gdb/testsuite/gdb.disasm/sh3.exp @@ -100,10 +100,7 @@ proc all_fp_misc_tests { } { } } =20 -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile =20 all_fp_move_and_load_tests all_fp_arithmetic_tests diff --git a/gdb/testsuite/gdb.go/basic-types.exp b/gdb/testsuite/gdb.go/ba= sic-types.exp index ce56ba4a681..ae95906a99a 100644 --- a/gdb/testsuite/gdb.go/basic-types.exp +++ b/gdb/testsuite/gdb.go/basic-types.exp @@ -100,11 +100,7 @@ proc test_complex_literal_types_accepted {} { gdb_test "pt complex128(i1.0)" "type =3D complex128" } =20 -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart =20 if [set_lang_go] { test_integer_literal_types_accepted