public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.cp/cp-relocate.exp for remote host
@ 2023-03-22 8:38 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-22 8:38 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf3f6c02d73f9823b8cb4f59524f29fbbfb6126d
commit bf3f6c02d73f9823b8cb4f59524f29fbbfb6126d
Author: Tom de Vries <tdevries@suse.de>
Date: Wed Mar 22 09:37:41 2023 +0100
[gdb/testsuite] Fix gdb.cp/cp-relocate.exp for remote host
Fix test-case gdb.cp/cp-relocate.exp for remote host using
gdb_remote_download.
Tested on x86_64-linux.
Diff:
---
gdb/testsuite/gdb.cp/cp-relocate.exp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp-relocate.exp
index d400bb14e46..25ed15a9aa1 100644
--- a/gdb/testsuite/gdb.cp/cp-relocate.exp
+++ b/gdb/testsuite/gdb.cp/cp-relocate.exp
@@ -118,7 +118,9 @@ if { $func1_sec == $func2_sec } {
# Now start a clean GDB, for add-symbol-file tests.
clean_restart
-gdb_test "add-symbol-file ${binfile} 0 -s ${func1_sec} 0x10000 -s ${func2_sec} 0x20000" \
+set host_binfile [gdb_remote_download host $binfile]
+
+gdb_test "add-symbol-file $host_binfile 0 -s ${func1_sec} 0x10000 -s ${func2_sec} 0x20000" \
"Reading symbols from .*${testfile}\\.o\\.\\.\\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)" \
"add-symbol-file ${testfile}.o" \
"add symbol table from file \".*${testfile}\\.o\" at.*\\(y or n\\) " \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-22 8:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 8:38 [binutils-gdb] [gdb/testsuite] Fix gdb.cp/cp-relocate.exp for remote host 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).