* [pushed 1/2] [gdb/testsuite] Fix gdb.stabs/weird.exp for remote host
@ 2023-03-27 16:06 Tom de Vries
2023-03-27 16:06 ` [pushed 2/2] [gdb/testsuite] Fix gdb.stabs/exclfwd.exp " Tom de Vries
0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2023-03-27 16:06 UTC (permalink / raw)
To: gdb-patches
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.
---
gdb/testsuite/gdb.stabs/weird.exp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.stabs/weird.exp b/gdb/testsuite/gdb.stabs/weird.exp
index 2375e4c96e4..1650d43fa6a 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
base-commit: 8ee5cc9fc03d4edbdc316c0a0e0bc46b99616c61
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pushed 2/2] [gdb/testsuite] Fix gdb.stabs/exclfwd.exp for remote host
2023-03-27 16:06 [pushed 1/2] [gdb/testsuite] Fix gdb.stabs/weird.exp for remote host Tom de Vries
@ 2023-03-27 16:06 ` Tom de Vries
0 siblings, 0 replies; 2+ messages in thread
From: Tom de Vries @ 2023-03-27 16:06 UTC (permalink / raw)
To: gdb-patches
Fix test-case gdb.stabs/exclfwd.exp for remote host using include_file.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.stabs/exclfwd.exp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/testsuite/gdb.stabs/exclfwd.exp b/gdb/testsuite/gdb.stabs/exclfwd.exp
index 3548d0abac9..e7ee9385919 100644
--- a/gdb/testsuite/gdb.stabs/exclfwd.exp
+++ b/gdb/testsuite/gdb.stabs/exclfwd.exp
@@ -22,6 +22,8 @@
standard_testfile exclfwd1.c exclfwd2.c
+include_file exclfwd.h
+
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] debug]} {
return -1
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-27 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 16:06 [pushed 1/2] [gdb/testsuite] Fix gdb.stabs/weird.exp for remote host Tom de Vries
2023-03-27 16:06 ` [pushed 2/2] [gdb/testsuite] Fix gdb.stabs/exclfwd.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).