public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed] [gdb/testsuite] Fix gdb.asm/asm-source.exp for remote host
Date: Mon, 27 Mar 2023 14:33:31 +0200	[thread overview]
Message-ID: <20230327123331.15150-1-tdevries@suse.de> (raw)

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.
---
 gdb/testsuite/gdb.asm/asm-source.exp | 12 ++++++++----
 1 file 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} ""] } {

base-commit: b54e6df085a3a3c0a86d9e19419d8b4cfa3e5055
-- 
2.35.3


                 reply	other threads:[~2023-03-27 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230327123331.15150-1-tdevries@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).