From: Simon Marchi Date: Mon, 4 Jan 2021 16:43:58 +0000 (-0500) Subject: gdb/testsuite: use clean_restart in gdb.server/server-run.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8387cc8b65fc3e7203f9ee48602cdf7b7009932;p=binutils-gdb.git 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 --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 053e12ebe4f..ac4b6e1e55c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-01-04 Simon Marchi + + * gdb.server/server-run.exp: Use clean_restart. + 2021-01-04 Simon Marchi * gdb.server/ext-run.exp: Use clean_restart. diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp index 6b392719335..72ba02c977c 100644 --- a/gdb/testsuite/gdb.server/server-run.exp +++ b/gdb/testsuite/gdb.server/server-run.exp @@ -29,16 +29,13 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { return -1 } -gdb_exit -gdb_start -gdb_load $binfile +clean_restart $binfile # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. gdb_test "disconnect" ".*" gdbserver_run "" -gdb_reinitialize_dir $srcdir/$subdir # We are now stopped at the program's entry point. On targets which use # SVR4 dynamic linking, we should have automatically loaded symbols for