aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-27 18:06:19 +0200
committerTom de Vries <tdevries@suse.de>2023-03-27 18:06:19 +0200
commitbc246dae0cec9502c2736cc4f05948d3c0218271 (patch)
tree614399797fc96c1689a058e9f49f0a48671b7e94
parent8ee5cc9fc03d4edbdc316c0a0e0bc46b99616c61 (diff)
downloadgdb-bc246dae0cec9502c2736cc4f05948d3c0218271.zip
gdb-bc246dae0cec9502c2736cc4f05948d3c0218271.tar.gz
gdb-bc246dae0cec9502c2736cc4f05948d3c0218271.tar.bz2
[gdb/testsuite] Fix gdb.stabs/weird.exp for remote host
Fix test-case gdb.stabs/weird.exp for remote host by not using an absolute destfile argument to gdb_remote_download, which doesn't work well with remotedir.
-rw-r--r--gdb/testsuite/gdb.stabs/weird.exp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.stabs/weird.exp b/gdb/testsuite/gdb.stabs/weird.exp
index 2375e4c..1650d43 100644
--- a/gdb/testsuite/gdb.stabs/weird.exp
+++ b/gdb/testsuite/gdb.stabs/weird.exp
@@ -275,10 +275,9 @@ remote_file build delete ${srcfile}
clean_restart
-set binfile [gdb_remote_download host ${binfile} \
- [standard_output_file object.o]]
-set binfile_re [string_to_regexp $binfile]
-send_gdb "file $binfile\n"
+set binfile_host [gdb_remote_download host $binfile]
+set binfile_re [string_to_regexp $binfile_host]
+send_gdb "file $binfile_host\n"
# If $binfile is very long, a \r (but not a \n) will echo in the
# middle of the echo of the command. So to match the echo, we
# would like to match anything not containing \n