From patchwork Mon Mar 27 12:33:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 66958 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25E25385842A for ; Mon, 27 Mar 2023 12:34:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25E25385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679920445; bh=8zmZil8ENXgImLNuUmZb1Y30p1WsMoF1lwDxLqmwCns=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=BjXghZ+HbbcWnhFrCQwzu38by/NCJCZwCAwEjZkfX+jYw9Elg6F0gvwEOVqVsMBn2 uOFOUv942sR9WlFKQUKFr5u/o0fxwuPacwas2OJRg41xmMR0IZJS7sA7OHv7kh1Lkt XRJDcs2g93mhfhS4wrK17sbLm6A6Oa8p1oQ8IZrQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 60CDC38708B0 for ; Mon, 27 Mar 2023 12:33:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 60CDC38708B0 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 990C221A79 for ; Mon, 27 Mar 2023 12:33:31 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 85FEE13482 for ; Mon, 27 Mar 2023 12:33:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id A2jzHhuNIWQYUAAAMHmgww (envelope-from ) for ; Mon, 27 Mar 2023 12:33:31 +0000 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 Message-Id: <20230327123331.15150-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom de Vries via Gdb-patches From: Tom de Vries Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" 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(-) base-commit: b54e6df085a3a3c0a86d9e19419d8b4cfa3e5055 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} ""] } {