testsuite: Mark the kill in gdbserver_run as optional
authorAlan Hayward <alan.hayward@arm.com>
Tue, 21 May 2019 09:11:51 +0000 (10:11 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Tue, 21 May 2019 09:42:24 +0000 (10:42 +0100)
This matches the kill in gdb_file_cmd, and ensures that the command is not
sent to the gdb.in file.

When gdb.in is used as a batch file, any kill commands run before the target
is started will cause gdb to stop processing commands.

gdb/testsuite/ChangeLog:

* lib/gdbserver-support.exp (gdbserver_run): Mark kill as optional.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdbserver-support.exp

index 5cfad2754e6473aada84549c720975f245bb0217..176b7f74bece01a3629fe117a9f99a5e68605997 100644 (file)
@@ -1,3 +1,7 @@
+2019-05-21  Alan Hayward  <alan.hayward@arm.com>
+
+       * lib/gdbserver-support.exp (gdbserver_run): Mark kill as optional.
+
 2019-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        PR gdb/18644
index 2ccc717ef608265e1945fc4376febcfb6f302227..ade99c0ea16cb52f67fa079d573d6109c17d7c51 100644 (file)
@@ -484,7 +484,7 @@ proc gdbserver_run { child_args } {
     # Kill anything running before we try to start gdbserver, in case
     # we are sharing a serial connection.
     global gdb_prompt
-    send_gdb "kill\n"
+    send_gdb "kill\n" optional
     gdb_expect 120 {
        -re "Kill the program being debugged. .y or n. $" {
            send_gdb "y\n"
This page took 0.031898 seconds and 4 git commands to generate.