mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
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:

committed by
Simon Marchi

parent
5169ae34bc
commit
d8387cc8b6
@ -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.
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user