From patchwork Mon Mar 27 16:06:37 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: 66965 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 0F72C385B514 for ; Mon, 27 Mar 2023 16:07:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F72C385B514 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679933251; bh=f0nYyyAX6j60HQORtwk8/WTHKhL3CBpNJsJFczjfLt8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ZNEu9QfiQTzMR4Rm7mTYcirHG2Uy6cqOo3e760anpHR8F+WIFqBG6SKhauA3C66up Eu9C+Z4DSK5z6L4ahY9CztC4HbW9keRR980vEDo3o1OlB2CcmWV5oVI5yX6IHgha2c X+9yq4T/kZ6bMmxcAdjPNtR9zUIN8ONTThYMSNaI= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 90F923858C2D for ; Mon, 27 Mar 2023 16:06:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 90F923858C2D 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-out2.suse.de (Postfix) with ESMTPS id B86E41FDBF for ; Mon, 27 Mar 2023 16:06:38 +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 A60C313482 for ; Mon, 27 Mar 2023 16:06:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id u1RRJw6/IWQbTAAAMHmgww (envelope-from ) for ; Mon, 27 Mar 2023 16:06:38 +0000 To: gdb-patches@sourceware.org Subject: [pushed 1/2] [gdb/testsuite] Fix gdb.stabs/weird.exp for remote host Date: Mon, 27 Mar 2023 18:06:37 +0200 Message-Id: <20230327160638.9339-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 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.stabs/weird.exp for remote host by not using an absolute destfile argument to gdb_remote_download, which doesn't work well with remotedir. --- gdb/testsuite/gdb.stabs/weird.exp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) base-commit: 8ee5cc9fc03d4edbdc316c0a0e0bc46b99616c61 diff --git a/gdb/testsuite/gdb.stabs/weird.exp b/gdb/testsuite/gdb.stabs/weird.exp index 2375e4c96e4..1650d43fa6a 100644 --- a/gdb/testsuite/gdb.stabs/weird.exp +++ b/gdb/testsuite/gdb.stabs/weird.exp @@ -275,10 +275,9 @@ remote_file build delete ${srcfile} clean_restart -set binfile [gdb_remote_download host ${binfile} \ - [standard_output_file object.o]] -set binfile_re [string_to_regexp $binfile] -send_gdb "file $binfile\n" +set binfile_host [gdb_remote_download host $binfile] +set binfile_re [string_to_regexp $binfile_host] +send_gdb "file $binfile_host\n" # If $binfile is very long, a \r (but not a \n) will echo in the # middle of the echo of the command. So to match the echo, we # would like to match anything not containing \n