aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-21 11:34:52 +0100
committerTom de Vries <tdevries@suse.de>2023-03-21 11:34:52 +0100
commit6ad0261323ae6df46439fc9bec312e21ed80397a (patch)
tree53cc81dd779a2b379a98af32e00f6841f775aa11 /gdb
parent96cabfaa4327de5387487ab7af8239aebc00230e (diff)
downloadgdb-6ad0261323ae6df46439fc9bec312e21ed80397a.zip
gdb-6ad0261323ae6df46439fc9bec312e21ed80397a.tar.gz
gdb-6ad0261323ae6df46439fc9bec312e21ed80397a.tar.bz2
[gdb/testsuite] Use localhost instead of 127.0.0.1 for boards
Some boards in gdb/testsuite/boards use the hardcoded ipv4 address "127.0.0.1". Use instead "localhost". Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/boards/local-remote-host-native.exp4
-rw-r--r--gdb/testsuite/boards/local-remote-host.exp4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/boards/local-remote-host-native.exp b/gdb/testsuite/boards/local-remote-host-native.exp
index 2851eb0..21680d8 100644
--- a/gdb/testsuite/boards/local-remote-host-native.exp
+++ b/gdb/testsuite/boards/local-remote-host-native.exp
@@ -40,7 +40,7 @@ if { $board_type == "target" } {
set GDB [file join [pwd] "../gdb"]
verbose -log "Overriding setting of GDB to $GDB"
-set_board_info hostname 127.0.0.1
+set_board_info hostname localhost
set_board_info username $env(USER)
@@ -65,7 +65,7 @@ save_vars {rsh_cmd res} {
}
}
-# The ssh key should be correctly set up that you ssh to 127.0.0.1
+# The ssh key should be correctly set up that you ssh to localhost
# without having to type password.
set_board_info rsh_prog /usr/bin/ssh
set_board_info rcp_prog /usr/bin/scp
diff --git a/gdb/testsuite/boards/local-remote-host.exp b/gdb/testsuite/boards/local-remote-host.exp
index f265208..021b220 100644
--- a/gdb/testsuite/boards/local-remote-host.exp
+++ b/gdb/testsuite/boards/local-remote-host.exp
@@ -24,7 +24,7 @@
set GDB [file normalize [file join [pwd] "../gdb"]]
-set_board_info hostname 127.0.0.1
+set_board_info hostname localhost
if { [info exists REMOTE_HOST_USERNAME] } {
set_board_info username $REMOTE_HOST_USERNAME
@@ -50,7 +50,7 @@ if { [board_info $board username] != $env(USER) } {
chmod go-rx ."
}
-# The ssh key should be correctly set up that you ssh to 127.0.0.1
+# The ssh key should be correctly set up that you ssh to localhost
# without having to type password.
set_board_info rsh_prog /usr/bin/ssh
set_board_info rcp_prog /usr/bin/scp