gdb/testsuite: use clean_restart in gdb.server/server-run.exp

I think this sequence of commands can be replaced with clean_restart.

gdb/testsuite/ChangeLog:

	* gdb.server/server-run.exp: Use clean_restart.

Change-Id: If8c3eaa89f4ee58901282f5f1d5d4e1100ce7ac5
This commit is contained in:
Simon Marchi
2021-01-04 11:43:58 -05:00
committed by Simon Marchi
parent 5169ae34bc
commit d8387cc8b6
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
* gdb.server/server-run.exp: Use clean_restart.
2021-01-04 Simon Marchi <simon.marchi@efficios.com> 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
* gdb.server/ext-run.exp: Use clean_restart. * gdb.server/ext-run.exp: Use clean_restart.

View File

@ -29,16 +29,13 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1 return -1
} }
gdb_exit clean_restart $binfile
gdb_start
gdb_load $binfile
# Make sure we're disconnected, in case we're testing with an # Make sure we're disconnected, in case we're testing with an
# extended-remote board, therefore already connected. # extended-remote board, therefore already connected.
gdb_test "disconnect" ".*" gdb_test "disconnect" ".*"
gdbserver_run "" gdbserver_run ""
gdb_reinitialize_dir $srcdir/$subdir
# We are now stopped at the program's entry point. On targets which use # We are now stopped at the program's entry point. On targets which use
# SVR4 dynamic linking, we should have automatically loaded symbols for # SVR4 dynamic linking, we should have automatically loaded symbols for