From patchwork Tue Oct 25 16:29:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59403 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 EDE04385615A for ; Tue, 25 Oct 2022 16:32:31 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::600]) by sourceware.org (Postfix) with ESMTPS id 871AA3856954 for ; Tue, 25 Oct 2022 16:32:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 871AA3856954 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 0ACD152AB96C for ; Tue, 25 Oct 2022 19:32:16 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-WFg0gSVj; Tue, 25 Oct 2022 19:32:15 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715535; bh=jzUTZ+09WeEwW7XjoUs0gLcDwp69hYAfyD22QwakZ0w=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=MHwsKOucAyd9dbknxvWwb+I8A87TgZecvji0IByWR3gohP4s+8F4zzSvFqaIiPiTR sbSwiuNESqJTL3lWPJtuZPBZXR7lnrkcV/Dxa4aUrUs+xTaBH6nB99/4T2ZisDC4FS nFL1O24LYIW5QDg0YBXaj0o4uQ3Zj+jg5b+6ZwWU= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 1/7] [gdb/testsuite] Adding function to find runtime path to support remote execution for testsuite Date: Tue, 25 Oct 2022 19:29:42 +0300 Message-Id: <20221025162946.727169-2-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/lib/gdb.exp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index e2cda30b95a..ee25daadac5 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -6200,6 +6200,18 @@ proc standard_output_file {basename} { return [file join $dir $basename] } +# Turns a full file name in a name for runtime context. +# This is needed as on remote folder structure is different +proc get_runtime_file {fullfile} { + if [is_remote target] { + set remotedir [board_info target remotedir] + set filename [file tail $fullfile] + return [file join $remotedir $filename] + } else { + return $fullfile + } +} + # Turn BASENAME into a full file name in the standard output directory. If # GDB has been launched more than once then append the count, starting with # a ".1" postfix. From patchwork Tue Oct 25 16:29:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59404 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 AD9BF3856243 for ; Tue, 25 Oct 2022 16:32:41 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by sourceware.org (Postfix) with ESMTPS id C305C385615A for ; Tue, 25 Oct 2022 16:32:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C305C385615A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 574605690708 for ; Tue, 25 Oct 2022 19:32:25 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-WPg0ND63; Tue, 25 Oct 2022 19:32:25 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715545; bh=GtggIQ+6LeDB/t3tfUL3RAUVUMIdpHC2IZVpkIGZgXw=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=A/+ObWUIdzYrmFA4P0tZJU/bIMGqnxnIlh+EAUSWJUTgVpv9ul/wbOWP7BWqPv4Zr edHvNdQpXh9nl4Q7GX+nG0xeeaDKcHS179OQbakMuupV9b8BrKMYPaB/zwoQEXGPji 4Qq46GL7cH6mQDkopPyJsH/bHX7NZd1KIFugQBIE= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 2/7] [gdb/testsuite] fix test gdb.base/print-file-var.exp for remote execution Date: Tue, 25 Oct 2022 19:29:44 +0300 Message-Id: <20221025162946.727169-3-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/print-file-var.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/print-file-var.exp b/gdb/testsuite/gdb.base/print-file-var.exp index 9abe87d7758..73137630fed 100644 --- a/gdb/testsuite/gdb.base/print-file-var.exp +++ b/gdb/testsuite/gdb.base/print-file-var.exp @@ -42,6 +42,8 @@ proc test {hidden dlopen version_id_main lang} { set libobj1 [standard_output_file ${lib1}$suffix.so] set libobj2 [standard_output_file ${lib2}$suffix.so] + set runtimelibobj2 [get_runtime_file $libobj2] + set lib_opts { debug $lang } lappend lib_opts "additional_flags=-DHIDDEN=$hidden" @@ -60,7 +62,7 @@ proc test {hidden dlopen version_id_main lang} { set link_opts [list debug shlib=${libobj1}] if {$dlopen} { - lappend main_opts "additional_flags=-DSHLIB_NAME=\"$libobj2\"" + lappend main_opts "additional_flags=-DSHLIB_NAME=\"$runtimelibobj2\"" lappend link_opts "shlib_load" } else { lappend link_opts "shlib=${libobj2}" From patchwork Tue Oct 25 16:29:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59405 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 1C06C38582B1 for ; Tue, 25 Oct 2022 16:32:52 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward107j.mail.yandex.net (forward107j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::252]) by sourceware.org (Postfix) with ESMTPS id 8A2BF3856952 for ; Tue, 25 Oct 2022 16:32:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8A2BF3856952 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward107j.mail.yandex.net (Yandex) with ESMTP id E242E885C84 for ; Tue, 25 Oct 2022 19:32:31 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-WVg0D609; Tue, 25 Oct 2022 19:32:31 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715551; bh=AUYuR9NzYHEkHt+MJgZSB8RSbSNijo7lIA5rrkOjAbo=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=plYwP0vZS+tiGi2WXQ2oflTbiW4sSldcldDogz9yksdeoxcSalph+2CrtfKEmUCK0 GKOqOKFvGqMtydrqP652wNNG899MigROTEaj9goBCqX2S0e3eCPhgS6YrokzKdjs7n 3yqJs35s5tUhU+DjYwONYQU9/C4hsJ1xn53mdXdQ= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 3/7] [gdb/testsuite] fix test gdb.base/jit-reader-exec.exp for remote execution Date: Tue, 25 Oct 2022 19:29:46 +0300 Message-Id: <20221025162946.727169-4-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/jit-reader-exec.exp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/jit-reader-exec.exp b/gdb/testsuite/gdb.base/jit-reader-exec.exp index c5ee8ef89a3..8b03b24f1e6 100644 --- a/gdb/testsuite/gdb.base/jit-reader-exec.exp +++ b/gdb/testsuite/gdb.base/jit-reader-exec.exp @@ -26,8 +26,9 @@ standard_testfile jit-reader-exec.c set testfile2 "jit-reader-execd" set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}] +set runtimefile2 [get_runtime_file $binfile2] -set compile_options [list debug additional_flags=-DPROGRAM=\"$binfile2\"] +set compile_options [list debug additional_flags=-DPROGRAM=\"$runtimefile2\"] if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable $compile_options] != ""} { @@ -43,6 +44,8 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" \ clean_restart $binfile +gdb_remote_download target $binfile2 + if {![runto_main]} { return } From patchwork Tue Oct 25 16:29:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59406 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 7D069385AC3B for ; Tue, 25 Oct 2022 16:33:18 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by sourceware.org (Postfix) with ESMTPS id 0B29738582B1 for ; Tue, 25 Oct 2022 16:33:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B29738582B1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 8D5584F11A59 for ; Tue, 25 Oct 2022 19:32:41 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-Wfg0YPZD; Tue, 25 Oct 2022 19:32:41 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715561; bh=oyhRSaTQyJsmYliuGWnbz+M94mAMRXC6elFWvnP3Tnw=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=afaF5ddM9JZ1hgelAMYcU3obo7q0QwasNly3kLs/cak2wLz26BMih+n29X5CsWlL2 Yp6k53wvi00wwYAVcZwDQ3EtAeLoO47uLaYd6XurGBgy9/GmMVtznQdM9h5pFfeatn Svf5bdoxeXdPeRx5dUpSIMmEK6L4cy+UzUk1fNxs= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 4/7] [gdb/testsuite] fix test gdb.base/solib-vanish.exp for remote execution Date: Tue, 25 Oct 2022 19:29:48 +0300 Message-Id: <20221025162946.727169-5-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/solib-vanish.exp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/solib-vanish.exp b/gdb/testsuite/gdb.base/solib-vanish.exp index 5f47f2a80fd..9116f1914a2 100644 --- a/gdb/testsuite/gdb.base/solib-vanish.exp +++ b/gdb/testsuite/gdb.base/solib-vanish.exp @@ -67,6 +67,7 @@ set lib2_flags {debug} set lib1name "solib-vanish-lib1" set srcfile_lib1 ${srcdir}/${subdir}/${lib1name}.c set binfile_lib1 [standard_output_file ${lib1name}.so] +set runtimebinfile_lib1 [get_runtime_file $binfile_lib1] set lib1_flags [list debug shlib=${binfile_lib2}] # Main program @@ -74,7 +75,7 @@ set testfile "solib-vanish-main" set srcfile ${srcdir}/${subdir}/${testfile}.c set executable ${testfile} set binfile [standard_output_file ${executable}] -set bin_flags [list debug shlib_load additional_flags=-DVANISH_LIB=\"${binfile_lib1}\"] +set bin_flags [list debug shlib_load additional_flags=-DVANISH_LIB=\"${runtimebinfile_lib1}\"] if { [gdb_compile_shlib ${srcfile_lib2} ${binfile_lib2} $lib2_flags] != "" || [gdb_compile_shlib ${srcfile_lib1} ${binfile_lib1} $lib1_flags] != "" @@ -85,6 +86,10 @@ if { [gdb_compile_shlib ${srcfile_lib2} ${binfile_lib2} $lib2_flags] != "" clean_restart $testfile +# load shlib to target +gdb_load_shlib $binfile_lib1 +gdb_load_shlib $binfile_lib2 + if { ![runto_main] } { return } From patchwork Tue Oct 25 16:29:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59408 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 EB13238582B1 for ; Tue, 25 Oct 2022 16:33:49 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::109]) by sourceware.org (Postfix) with ESMTPS id E133B3856951 for ; Tue, 25 Oct 2022 16:33:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E133B3856951 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward106j.mail.yandex.net (Yandex) with ESMTP id C62FA6BDAD97 for ; Tue, 25 Oct 2022 19:32:51 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-Wpg0DweX; Tue, 25 Oct 2022 19:32:51 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715571; bh=BF/dvwmdA9R9tuzqony/RnBkkIiB5ymlNFhbrga8wMs=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=PA81GWHaCE6UQ/IOdaCYflK9xzG2EroKvdl8WB1mqk1iPzDBNhZ6IVfmMWiyz+wfV baiGDDZ49YKJJe3v4GIgCHqyTs6jt3TaFTZBsrw+QjN7fa7MDvUaqx0oQ5IeGtxQh6 FDEehpaEMjze9iOJnvYgHeCoY81UDqxkhW0ClY4Q= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 5/7] [gdb/testsuite] fix test gdb.base/infcall-exec.exp for remote execution Date: Tue, 25 Oct 2022 19:29:50 +0300 Message-Id: <20221025162946.727169-6-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/infcall-exec.exp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/infcall-exec.exp b/gdb/testsuite/gdb.base/infcall-exec.exp index e8f6a218c36..514dc70a4d9 100644 --- a/gdb/testsuite/gdb.base/infcall-exec.exp +++ b/gdb/testsuite/gdb.base/infcall-exec.exp @@ -21,6 +21,7 @@ standard_testfile set testfile2 "infcall-exec2" set srcfile2 "${testfile2}.c" set binfile2 [standard_output_file $testfile2] +set runtimebinfile2 [get_runtime_file $binfile2] # Build the two executables for the test. if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable debug] != ""} { @@ -33,15 +34,17 @@ if {[gdb_compile $srcdir/$subdir/$srcfile2 $binfile2 executable debug] != ""} { } clean_restart $binfile +gdb_remote_download target $binfile +gdb_remote_download target $binfile2 if {![runto_main]} { return -1 } -set expected_result "process $decimal is executing new program: $binfile2" +set expected_result "process $decimal is executing new program: $runtimebinfile2" append expected_result "\[\r\n\]+.*" append expected_result "Breakpoint 1, main .*at .*$srcfile2:$decimal" append expected_result ".*" -gdb_test "call (int) execlp \(\"$binfile2\", \"$binfile2\", \(char \*\)0\)" \ +gdb_test "call (int) execlp \(\"$runtimebinfile2\", \"$runtimebinfile2\", \(char \*\)0\)" \ $expected_result "call execlp" From patchwork Tue Oct 25 16:29:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59407 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 A529C385624D for ; Tue, 25 Oct 2022 16:33:41 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:107]) by sourceware.org (Postfix) with ESMTPS id 0D07438582B1 for ; Tue, 25 Oct 2022 16:33:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0D07438582B1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 3887F3C2675F for ; Tue, 25 Oct 2022 19:33:00 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-Wxg0UwZg; Tue, 25 Oct 2022 19:32:59 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715580; bh=G7AyV1eL7KGKZcP+DY8bBffksxHqU08YoEKRZE6O7Bo=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=uNfbBZbUgWPIbmcJMzKmFuxJ2yp34wET5wmM6U56LOs+sPpJSAVkhK/qusedIzD/2 YRU8uWYS4EPLXxXDgIVy3l65J2o9/vWKWlYVD96q4Enma7XDf5SDMRaZhwnx4D9HjV MQNeJs5EfJPOJE7Ec6VzlaK7Bq6eEsW2LL3Zvg6A= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 6/7] [gdb/testsuite] fix test gdb.base/info-shared.exp for remote execution Date: Tue, 25 Oct 2022 19:29:52 +0300 Message-Id: <20221025162946.727169-7-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/info-shared.exp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/info-shared.exp b/gdb/testsuite/gdb.base/info-shared.exp index 290ae5793dc..9b400e07649 100644 --- a/gdb/testsuite/gdb.base/info-shared.exp +++ b/gdb/testsuite/gdb.base/info-shared.exp @@ -22,12 +22,14 @@ standard_testfile set lib1name $testfile-solib1 set srcfile_lib1 $srcdir/$subdir/$lib1name.c set binfile_lib1 [standard_output_file $lib1name.so] -set define1 -DSHLIB1_NAME=\"$binfile_lib1\" +set runtime_binfile_lib1 [get_runtime_file $binfile_lib1] +set define1 -DSHLIB1_NAME=\"$runtime_binfile_lib1" set lib2name $testfile-solib2 set srcfile_lib2 $srcdir/$subdir/$lib2name.c set binfile_lib2 [standard_output_file $lib2name.so] -set define2 -DSHLIB2_NAME=\"$binfile_lib2\" +set runtime_binfile_lib2 [get_runtime_file $binfile_lib2] +set define2 -DSHLIB2_NAME=\"$runtime_binfile_lib2" if { [gdb_compile_shlib $srcfile_lib1 $binfile_lib1 {}] != "" } { untested "failed to compile shared library 1" @@ -45,6 +47,9 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ return -1 } +gdb_load_shlib $binfile_lib1 +gdb_load_shlib $binfile_lib2 + # Run "info sharedlibrary" and check for the presence or absence of # our libraries. proc check_info_shared { test expect1 expect2 } { From patchwork Tue Oct 25 16:29:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59409 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 E33A2385B83C for ; Tue, 25 Oct 2022 16:34:10 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::608]) by sourceware.org (Postfix) with ESMTPS id 707C83856DCA for ; Tue, 25 Oct 2022 16:33:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 707C83856DCA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 1A77B4C554B for ; Tue, 25 Oct 2022 19:33:10 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-X9g0jKs6; Tue, 25 Oct 2022 19:33:09 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715589; bh=uiv0VoBu5yeEGFQ9qMS8gCKv+SPOwvPHSciOyT/Kfog=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=wQyCLkOJ5v2Je2fLFDUCuiNiNXn832C25zG17tMYN44QbsVQAFXevMzbcCDEs9jCd r1cQCNa6nJFcAPBoR1GBfnOsgWRPB06Keg+GYq/OX/CRjVqueK74VpO9j43goeYD9c zITpsT/WyK2iNo4G1Leqagaildjlr7ifYfWUBoho= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 7/7] [gdb/testsuite] fix test gdb.base/jit-elf-so.exp for remote execution Date: Tue, 25 Oct 2022 19:29:54 +0300 Message-Id: <20221025162946.727169-8-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/jit-elf-so.exp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/jit-elf-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp index dcc9afc36b9..566e9ef0673 100644 --- a/gdb/testsuite/gdb.base/jit-elf-so.exp +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp @@ -90,7 +90,8 @@ proc one_jit_test {solib_binfiles_target match_str} { gdb_breakpoint [gdb_get_line_number "break here before-dlopen" \ $main_loader_srcfile] gdb_continue_to_breakpoint "break here before-dlopen" - gdb_test_no_output "set var jit_libname = \"$main_solib_binfile\"" \ + set runtime_main_solib_binfile [get_runtime_file $main_solib_binfile] + gdb_test_no_output "set var jit_libname = \"$runtime_main_solib_binfile\"" \ "setting library name" gdb_breakpoint [gdb_get_line_number "break here after-dlopen" \ @@ -159,8 +160,9 @@ foreach solib $jit_solibs_target { # We don't intend to load the .so as a JIT debuginfo reader, but we # need some handy file name for a completion test. set input [string range $solib 0 [expr { [string length $solib] - 2 }]] + set runtime_solib [get_runtime_file $input] gdb_test \ "complete jit-reader-load [standard_output_file $input]" \ - "jit-reader-load $solib" \ + "jit-reader-load $runtime_solib" \ "test jit-reader-load filename completion [file tail $solib]" }