From 49e118b61f07812235faec67cc783a0e866c3ff8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 25 Jan 2023 10:14:50 -0700 Subject: [PATCH] Use clean_restart in gdb.opencl Change gdb.opencl to use clean_restart more consistently. --- 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.opencl/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}" "${testfile}" "" ] != "" } { return -1 } -gdb_exit -gdb_start - -# Load the OpenCL app -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${objdir}/${subdir}/${testfile} +clean_restart [standard_testfile $testfile] # Set breakpoint at the OpenCL kernel gdb_test "tbreak testkernel" \ -- 2.30.2