aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-01-04 11:43:58 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-04 11:43:58 -0500
commitd8387cc8b65fc3e7203f9ee48602cdf7b7009932 (patch)
treed61515dc56e8c188a3dfdcc276a7bb488e4667cd /gdb/testsuite
parent5169ae34bc8bd92a6b4403c6565a4168360e84f8 (diff)
downloadgdb-d8387cc8b65fc3e7203f9ee48602cdf7b7009932.zip
gdb-d8387cc8b65fc3e7203f9ee48602cdf7b7009932.tar.gz
gdb-d8387cc8b65fc3e7203f9ee48602cdf7b7009932.tar.bz2
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
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.server/server-run.exp5
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 053e12e..ac4b6e1 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
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>
+
* gdb.server/ext-run.exp: Use clean_restart.
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp
index 6b39271..72ba02c 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