diff options
author | Tom Tromey <tromey@adacore.com> | 2023-10-11 10:20:04 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-10-12 07:44:52 -0600 |
commit | 07c833f99c331f9eb77901cdfd143fce5acc8454 (patch) | |
tree | 256ffcf56771a79ccfc5b7239710d82e400979db /gdb/testsuite/boards | |
parent | b8ead7d503a7b3719716d42164299c02abd658cf (diff) | |
download | gdb-07c833f99c331f9eb77901cdfd143fce5acc8454.zip gdb-07c833f99c331f9eb77901cdfd143fce5acc8454.tar.gz gdb-07c833f99c331f9eb77901cdfd143fce5acc8454.tar.bz2 |
Fix test suite failure in file-then-restart.exp
Simon pointed out that the new file-then-restart.exp test fails with
the extended-remote target board.
The problem is that the test suite doesn't use gdb_file_cmd -- which
handles things like "set remote exec-file". This patch changes
gdb_file_cmd to make the "kill" command optional, and then switches
the test case to use it.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30933
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/testsuite/boards')
-rw-r--r-- | gdb/testsuite/boards/native-extended-gdbserver.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/boards/native-extended-gdbserver.exp b/gdb/testsuite/boards/native-extended-gdbserver.exp index 844d032..64ff306 100644 --- a/gdb/testsuite/boards/native-extended-gdbserver.exp +++ b/gdb/testsuite/boards/native-extended-gdbserver.exp @@ -95,8 +95,8 @@ proc extended_gdbserver_load_last_file {} { if { [info procs extended_gdbserver_gdb_file_cmd] == "" } { rename gdb_file_cmd extended_gdbserver_gdb_file_cmd } -proc gdb_file_cmd { arg } { - if [extended_gdbserver_gdb_file_cmd $arg] { +proc gdb_file_cmd { arg {kill_flag 1} } { + if [extended_gdbserver_gdb_file_cmd $arg $kill_flag] { return -1 } return [extended_gdbserver_load_last_file] |