aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-progspace.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 14:48:55 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:32 -0700
commit9b2234b063eb8e08be1fccc7d830fb7065cd06ae (patch)
tree0dafe1b0bbdbb22754604a48c225ba26f439ec28 /gdb/testsuite/gdb.python/py-progspace.exp
parente125b182783d729a9a29f6389a7661366a8dbd14 (diff)
downloadbinutils-9b2234b063eb8e08be1fccc7d830fb7065cd06ae.zip
binutils-9b2234b063eb8e08be1fccc7d830fb7065cd06ae.tar.gz
binutils-9b2234b063eb8e08be1fccc7d830fb7065cd06ae.tar.bz2
Use clean_restart in gdb.python
Change gdb.python to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-progspace.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-progspace.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.python/py-progspace.exp b/gdb/testsuite/gdb.python/py-progspace.exp
index c7be948..638b279 100644
--- a/gdb/testsuite/gdb.python/py-progspace.exp
+++ b/gdb/testsuite/gdb.python/py-progspace.exp
@@ -26,11 +26,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
gdb_test "python print (gdb.current_progspace().filename)" "None" \
"current progspace filename (None)"