From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 3B7D5388B6A5; Fri, 27 Jan 2023 01:30:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B7D5388B6A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674783052; bh=mBhvqDwyZFiTWbH/cPoIxHZSMWtkJt9UVvMkSA+w6gI=; h=From:To:Subject:Date:From; b=LPvzJucui+LZ2G/h+Qi2FYuFAwohiTaMNFMVYwNPX248Yoj7AYZvOy3Bjq97Q5xfk pqtPAGBd8TLSvZjuU0endArmLQzTySoo/aU8TXv2P+D+vdteidHXxJ7qXJl9C0XPtH U1xr3GfED2GbtjoUVpq97StwT5ot9UasI5NENFUU= 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.cp X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: eefe81b52301076b6cdd5bec3664d1a4c4978b9f X-Git-Newrev: e125b182783d729a9a29f6389a7661366a8dbd14 Message-Id: <20230127013052.3B7D5388B6A5@sourceware.org> Date: Fri, 27 Jan 2023 01:30:52 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De125b182783d= 729a9a29f6389a7661366a8dbd14 commit e125b182783d729a9a29f6389a7661366a8dbd14 Author: Tom Tromey Date: Wed Jan 25 14:43:51 2023 -0700 Use clean_restart in gdb.cp =20 Change gdb.cp to use clean_restart more consistently. Diff: --- gdb/testsuite/gdb.cp/cp-relocate.exp | 8 ++------ gdb/testsuite/gdb.cp/ref-params.exp | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp= -relocate.exp index 5e70f9d30d3..d400bb14e46 100644 --- a/gdb/testsuite/gdb.cp/cp-relocate.exp +++ b/gdb/testsuite/gdb.cp/cp-relocate.exp @@ -46,9 +46,7 @@ proc get_func_address { func } { =20 # Load the file as an executable; GDB should assign non-overlapping # section offsets. -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart gdb_file_cmd ${binfile} =20 # Find the interesting functions. We go to a little effort to find @@ -118,9 +116,7 @@ if { $func1_sec =3D=3D $func2_sec } { } =20 # Now start a clean GDB, for add-symbol-file tests. -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart =20 gdb_test "add-symbol-file ${binfile} 0 -s ${func1_sec} 0x10000 -s ${func2_= sec} 0x20000" \ "Reading symbols from .*${testfile}\\.o\\.\\.\\.(|\r\nUsing host libthrea= d_db library .*libthread_db.so.*\\.)" \ diff --git a/gdb/testsuite/gdb.cp/ref-params.exp b/gdb/testsuite/gdb.cp/ref= -params.exp index 52bbb4d097a..c06fc202893 100644 --- a/gdb/testsuite/gdb.cp/ref-params.exp +++ b/gdb/testsuite/gdb.cp/ref-params.exp @@ -28,8 +28,6 @@ if {[build_executable $testfile.exp $testfile $srcfile {d= ebug c++}] =3D=3D -1} { return -1 } =20 -gdb_exit - proc gdb_start_again { text } { global binfile global srcfile