public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Remove REMOTE_PORTNUM in remote-stdio-gdbserver.exp
@ 2022-10-29  7:20 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-10-29  7:20 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=488ed354c8514ba93286f8676a64b7841bb1fda4

commit 488ed354c8514ba93286f8676a64b7841bb1fda4
Author: Tom de Vries <tdevries@suse.de>
Date:   Sat Oct 29 09:20:36 2022 +0200

    [gdb/testsuite] Remove REMOTE_PORTNUM in remote-stdio-gdbserver.exp
    
    The usage for board remote-stdio-gdbserver.exp is advertised as:
    ...
     # bash$ make check RUNTESTFLAGS="--target_board=remote-stdio-gdbserver \
     #    REMOTE_USERNAME=... REMOTE_HOSTNAME=... REMOTE_PORTNUM=... \
     #    [REMOTE_TMPDIR=${remote_dir}] [GDBSERVER=${remote_gdbserver}]"
    ...
    but when adding REMOTE_PORTNUM=22, I run into:
    ...
    Running stop-reply-no-thread-multi.exp ...
    ERROR: tcl error sourcing stop-reply-no-thread-multi.exp.
    ERROR: couldn't execute "/usr/bin/ssh -p22": no such file or directory
        while executing
    "builtin_spawn {/usr/bin/ssh -p22} -l vries localhost {/usr/bin/gdbserver \
      --once localhost:2346 \
      /home/vries/gdb_versions/devel/build/gdb/testsuite/outp..."
    ...
    
    Fix this by simply removing REMOTE_PORTNUM.
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/boards/remote-stdio-gdbserver.exp | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/gdb/testsuite/boards/remote-stdio-gdbserver.exp b/gdb/testsuite/boards/remote-stdio-gdbserver.exp
index 101f1ee8098..e1a2d0ed007 100644
--- a/gdb/testsuite/boards/remote-stdio-gdbserver.exp
+++ b/gdb/testsuite/boards/remote-stdio-gdbserver.exp
@@ -21,7 +21,7 @@
 # To use this file:
 # bash$ cd ${build_dir}/gdb
 # bash$ make check RUNTESTFLAGS="--target_board=remote-stdio-gdbserver \
-#    REMOTE_USERNAME=... REMOTE_HOSTNAME=... REMOTE_PORTNUM=... \
+#    REMOTE_USERNAME=... REMOTE_HOSTNAME=... \
 #    [REMOTE_TMPDIR=${remote_dir}] [GDBSERVER=${remote_gdbserver}]"
 
 load_board_description "stdio-gdbserver-base"
@@ -39,17 +39,8 @@ if [info exists REMOTE_HOSTNAME] {
     set_board_info hostname unspecified_hostname
 }
 
-# The two programs have different syntax to set the remote port, so
-# set it as part of the program name rather than in get_remote_login.
-
-if [info exists REMOTE_PORTNUM] {
-    set_board_info portnum $REMOTE_PORTNUM
-    set_board_info rsh_prog "/usr/bin/ssh -p$REMOTE_PORTNUM"
-    set_board_info rcp_prog "/usr/bin/scp -P$REMOTE_PORTNUM"
-} else {
-    set_board_info rsh_prog /usr/bin/ssh
-    set_board_info rcp_prog /usr/bin/scp
-}
+set_board_info rsh_prog /usr/bin/ssh
+set_board_info rcp_prog /usr/bin/scp
 
 # Some remote machines don't have writable home directories.
 if [info exists REMOTE_TMPDIR] {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-29  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-29  7:20 [binutils-gdb] [gdb/testsuite] Remove REMOTE_PORTNUM in remote-stdio-gdbserver.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).