summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/asm-source.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-27 14:33:15 +0200
committerTom de Vries <tdevries@suse.de>2023-03-27 14:33:15 +0200
commit2215170485845673379b59d3e4e5e1a9ac01ba41 (patch)
tree4ea952b91b01823578112cf1b6d01d92e88cb03b /gdb/testsuite/gdb.asm/asm-source.exp
parentb54e6df085a3a3c0a86d9e19419d8b4cfa3e5055 (diff)
downloadbinutils-gdb-2215170485845673379b59d3e4e5e1a9ac01ba41.tar.gz
[gdb/testsuite] Fix gdb.asm/asm-source.exp for remote host
Fix test-case gdb.asm/asm-source.exp for remote host using host_standard_output_file and gdb_remote_download. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.asm/asm-source.exp')
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 5d81a1fe8ec..41bb3d1e677 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -27,7 +27,7 @@ set asm-flags ""
set link-flags "-e _start"
set debug-flags ""
-set obj_include -I[standard_output_file {}]
+set obj_include -I[host_standard_output_file {}]
switch -glob -- [istarget] {
"alpha*-*-*" {
@@ -199,12 +199,16 @@ set arch_inc [standard_output_file arch.inc]
set note_inc [standard_output_file note.inc]
remote_exec build "rm -f $arch_inc"
-remote_download host ${srcdir}/${subdir}/${asm-arch}.inc $arch_inc
+remote_download build ${srcdir}/${subdir}/${asm-arch}.inc $arch_inc
remote_exec build "rm -f $note_inc"
-remote_download host ${srcdir}/${subdir}/${asm-note}.inc $note_inc
+remote_download build ${srcdir}/${subdir}/${asm-note}.inc $note_inc
+
+gdb_remote_download host $arch_inc
+gdb_remote_download host $note_inc
+gdb_remote_download host ${srcdir}/${subdir}/common.inc
if { [string equal ${asm-flags} ""] } {
- set asm-flags "-I${srcdir}/${subdir} $obj_include"
+ set asm-flags "$obj_include"
}
if { [string equal ${debug-flags} ""] } {