From: Tom Tromey Date: Wed, 25 Jan 2023 17:14:50 +0000 (-0700) Subject: Use clean_restart in gdb.opencl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49e118b61f07812235faec67cc783a0e866c3ff8;p=binutils-gdb.git Use clean_restart in gdb.opencl Change gdb.opencl to use clean_restart more consistently. --- 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" \