From 9b2234b063eb8e08be1fccc7d830fb7065cd06ae Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 25 Jan 2023 14:48:55 -0700 Subject: Use clean_restart in gdb.python Change gdb.python to use clean_restart more consistently. --- gdb/testsuite/gdb.python/py-section-script.exp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gdb/testsuite/gdb.python/py-section-script.exp') diff --git a/gdb/testsuite/gdb.python/py-section-script.exp b/gdb/testsuite/gdb.python/py-section-script.exp index 24d2074..fec7b00 100644 --- a/gdb/testsuite/gdb.python/py-section-script.exp +++ b/gdb/testsuite/gdb.python/py-section-script.exp @@ -46,11 +46,7 @@ if {[build_executable $testfile.exp $testfile $srcfile \ return -1 } -# Start with a fresh gdb. -gdb_exit -gdb_start - -gdb_reinitialize_dir $srcdir/$subdir +clean_restart # Try first with a restrictive safe-path. @@ -71,9 +67,7 @@ gdb_test_multiple "info auto-load python-scripts" "$test_name" { # Try again with a working safe-path. -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart # Get the name of the binfile on the host; on a remote host this means # stripping off any directory prefix. -- cgit v1.1