]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/config/gdbserver.exp
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / config / gdbserver.exp
index ef6322f500cb84325ac99e29dc0794c67dbcc596..ed993eb2cd6f4afdbffbd4170e79d5b7e2e90a48 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2000-2014 Free Software Foundation, Inc.
+# Copyright 2000-2023 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 #      Unles you have a gdbserver that can handle multiple sessions.
 #
 #   set_board_info noargs 1
-#      At present there is no provision in the remote protocol
-#      for passing arguments.  This test framework does not
-#      address the issue, so it's best to set this variable
-#      in your baseboard configuration file.  
-#      FIXME: there's no reason why the test harness couldn't
-#      pass commandline args when it spawns gdbserver.
+#      Set this if the board does not support passing arguments to the
+#      inferior process.
 #
 #   set_board_info gdb,noinferiorio 1
 #      Neither the traditional gdbserver nor the one in libremote
@@ -77,8 +73,8 @@ proc gdbserver_gdb_load { } {
     return [gdbserver_spawn ""]
 }
 
-proc gdb_reload { } {
-    return [gdbserver_run ""]
+proc gdb_reload { {inferior_args {}} } {
+    return [gdbserver_run $inferior_args]
 }
 
 proc gdb_reconnect { } {