diff options
author | Tom de Vries <tdevries@suse.de> | 2023-03-22 09:37:41 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-03-22 09:37:41 +0100 |
commit | bf3f6c02d73f9823b8cb4f59524f29fbbfb6126d (patch) | |
tree | c7006a021d94acc2c61b66c84b9c04e8ee39f194 | |
parent | 14662762048c2519af25b0028a091097d7610ccc (diff) | |
download | binutils-bf3f6c02d73f9823b8cb4f59524f29fbbfb6126d.zip binutils-bf3f6c02d73f9823b8cb4f59524f29fbbfb6126d.tar.gz binutils-bf3f6c02d73f9823b8cb4f59524f29fbbfb6126d.tar.bz2 |
[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.
-rw-r--r-- | gdb/testsuite/gdb.cp/cp-relocate.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp-relocate.exp index d400bb1..25ed15a 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\\) " \ |