From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1679920411; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8zmZil8ENXgImLNuUmZb1Y30p1WsMoF1lwDxLqmwCns=; b=PvvUUJecktL16pO8pOmS7YSqiH5H6GPWP6JAztTrIW3urT5P4wRyuVCTdGrF6eCo5wVQc4 ugcMxk+OSkeAbG3Ph7VBZ9XGDnjEmZIPosQhz7Rkifw496RZFqea2slubhmpeLSyQ5sEll GDzQUnImFXPmkXr0Mo28ln1yN+QgvD0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1679920411; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8zmZil8ENXgImLNuUmZb1Y30p1WsMoF1lwDxLqmwCns=; b=EeoxBD65OHUH9Em9QtH6RDjR5U6mMSw3MOYR5u60f09ZdeyJJgHZ3y6a1kRRIs49sx5xD6 jwgLGNbUSTGlMNDA== 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 From: Tom de Vries 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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