From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 152A63858D28; Fri, 27 Jan 2023 01:29:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 152A63858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674782981; bh=Q3GviBEyEwkGqHLgRmIZyxxo0b4aZ+TcdhpqT+PnPjo=; h=From:To:Subject:Date:From; b=jE2PhODN4QXi6OAQMi1cCJ92P81AziODxOZA8zjvpIXOe2KODhHYOuNjypnkQx7nH k1WssBZqIdjHernEjgebpShfdJ6KN3ypUsCPQt305TaNOM2bufrD6XlNj2wyNrrEd9 fzcC6/z5PA8IK+xONxSXNH240gklJR1ZYBZ7JTuk= 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.opencl X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 4eed72400bd6e71ab0c6bbd1dd8035171d60390d X-Git-Newrev: 49e118b61f07812235faec67cc783a0e866c3ff8 Message-Id: <20230127012941.152A63858D28@sourceware.org> Date: Fri, 27 Jan 2023 01:29:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D49e118b61f07= 812235faec67cc783a0e866c3ff8 commit 49e118b61f07812235faec67cc783a0e866c3ff8 Author: Tom Tromey Date: Wed Jan 25 10:14:50 2023 -0700 Use clean_restart in gdb.opencl =20 Change gdb.opencl to use clean_restart more consistently. Diff: --- gdb/testsuite/gdb.opencl/callfuncs.exp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gdb/testsuite/gdb.opencl/callfuncs.exp b/gdb/testsuite/gdb.ope= ncl/callfuncs.exp index 1fa3f8abcb0..4a7b2fb9f82 100644 --- a/gdb/testsuite/gdb.opencl/callfuncs.exp +++ b/gdb/testsuite/gdb.opencl/callfuncs.exp @@ -30,12 +30,7 @@ if { [gdb_compile_opencl_hostapp "${clprogram}" "${testf= ile}" "" ] !=3D "" } { return -1 } =20 -gdb_exit -gdb_start - -# Load the OpenCL app -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${objdir}/${subdir}/${testfile} +clean_restart [standard_testfile $testfile] =20 # Set breakpoint at the OpenCL kernel gdb_test "tbreak testkernel" \