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 317F83858039 for ; Fri, 10 Mar 2023 15:34:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 317F83858039 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 435E221F47 for ; Fri, 10 Mar 2023 15:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1678462475; 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=m5zPEvDS6AkWCJLtrdyDwJY/y76hysKbt44Xyf1yAYA=; b=wfhyY/0s0je7y42I2SFwZwkmgpJ4G4BDPGPD6iNa+R71KSoS1pKRUwB0u4QJSfvZz2HdI9 A0nisECMEb49rkp2wems+p29M2Ok33pyfFrTibT1pNcRuo2nRswlV4q6TJvLbnQmvGWArE pMSXMXaHNWhvzKXDioKErTxxNugBgf8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1678462475; 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=m5zPEvDS6AkWCJLtrdyDwJY/y76hysKbt44Xyf1yAYA=; b=v4FlDz/Ht0954eSWwPnqV33hhWvq4fJC4u8oku9ESoKTVUw6kwRKdhIt0to6SGbW5epjbN YdQ4huTJwUPQwjAg== 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 2FE55134F7 for ; Fri, 10 Mar 2023 15:34:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +Bl8CgtOC2SxBwAAMHmgww (envelope-from ) for ; Fri, 10 Mar 2023 15:34:35 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed 1/4] [gdb/testsuite] Fix gdb.python/py-event-load.exp for remote target Date: Fri, 10 Mar 2023 16:34:30 +0100 Message-Id: <20230310153433.6265-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.python/py-event-load.exp for target board remote-gdbserver-on-localhost using gdb_download_shlib. Tested on x86_64-linux. --- gdb/testsuite/gdb.python/py-event-load.exp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.python/py-event-load.exp b/gdb/testsuite/gdb.python/py-event-load.exp index ac2331cdd8b..1375cf675d0 100644 --- a/gdb/testsuite/gdb.python/py-event-load.exp +++ b/gdb/testsuite/gdb.python/py-event-load.exp @@ -36,20 +36,21 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ set testfile2 py-events-shlib set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}.so] -set binfile2_dlopen [shlib_target_file ${testfile2}.so] if {[gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" \ ${binfile2} {debug}] != ""} { untested "failed to compile shared library" return -1 } +set binfile2_dlopen [gdb_download_shlib $binfile2] + clean_restart $testfile if {![runto_main]} { return } -gdb_test_no_output "set var libname = \"$binfile2_dlopen\"" +gdb_test_no_output "set var libname = \"$binfile2_dlopen\"" "set var libname" set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-event-load.py] gdb_test_no_output "source ${pyfile}" "load python file" base-commit: 6349d27e30a6495830e27c64271168e921c622a0 -- 2.35.3