diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-25 14:48:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-26 18:28:32 -0700 |
commit | 9b2234b063eb8e08be1fccc7d830fb7065cd06ae (patch) | |
tree | 0dafe1b0bbdbb22754604a48c225ba26f439ec28 /gdb/testsuite/gdb.python/py-section-script.exp | |
parent | e125b182783d729a9a29f6389a7661366a8dbd14 (diff) | |
download | binutils-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-section-script.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-section-script.exp | 10 |
1 files changed, 2 insertions, 8 deletions
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. |