aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/watchthreads.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 10:36:09 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:31 -0700
commita30f2b7b7e689b3f1bd93c29a1e00c8d852145d3 (patch)
tree5413b2d4370ee9ce580e7038dc2f734f17819a3e /gdb/testsuite/gdb.threads/watchthreads.exp
parent3ae2b57582b29fce26b00d38363533e761f946a5 (diff)
downloadgdb-a30f2b7b7e689b3f1bd93c29a1e00c8d852145d3.zip
gdb-a30f2b7b7e689b3f1bd93c29a1e00c8d852145d3.tar.gz
gdb-a30f2b7b7e689b3f1bd93c29a1e00c8d852145d3.tar.bz2
Use clean_restart in gdb.threads
Change gdb.threads to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite/gdb.threads/watchthreads.exp')
-rw-r--r--gdb/testsuite/gdb.threads/watchthreads.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.threads/watchthreads.exp b/gdb/testsuite/gdb.threads/watchthreads.exp
index 1aa7957..e80c60b 100644
--- a/gdb/testsuite/gdb.threads/watchthreads.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads.exp
@@ -31,11 +31,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
+clean_restart $binfile
gdb_test_no_output "set can-use-hw-watchpoints 1" ""
#