public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use clean_restart in gdb.opencl
@ 2023-01-27  1:29 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-01-27  1:29 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=49e118b61f07812235faec67cc783a0e866c3ff8

commit 49e118b61f07812235faec67cc783a0e866c3ff8
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Jan 25 10:14:50 2023 -0700

    Use clean_restart in gdb.opencl
    
    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.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" \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-27  1:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27  1:29 [binutils-gdb] Use clean_restart in gdb.opencl Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).