From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +UiNOxs1w2ozWDoAWB0awg (envelope-from ) for ; Mon, 05 Oct 2026 01:26:52 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=cEi9beV2; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id F02061E050; Mon, 05 Oct 2026 01:26:51 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 42C211E047 for ; Mon, 05 Oct 2026 01:26:51 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D14564BA23E4 for ; Mon, 5 Oct 2026 05:26:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D14564BA23E4 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=cEi9beV2 Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id C02A24BA2E0A for ; Mon, 5 Oct 2026 05:26:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C02A24BA2E0A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C02A24BA2E0A Authentication-Results: sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791177973; cv=none; b=owIRtpxg22GbK+tZ3YHXqnwQwfJjL0xA/dUXzkleQDJ+4CJ9acjg0bEin+2zouPpZipMxZLzHFfmja8/dYb/3iXrgwxtmOkIrRcNT5RK4UT6/YhMBjv5LEFW1SHxtN0SHQo9dLbqlu1KsbtXixjoWp5m6OaZVaduemdSBkloNSQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791177973; c=relaxed/simple; bh=bP550vPUdYVXmW+DgnxnRWrzKrHdUi2/w93E+vPZS7s=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PX2TzqwYOyqvByq4LUNKxrR81h4KQepvkcPB/pQYBAr1FENIUHvJRW1gG6zZ8kKu6MJ4S/CnHU46NDfq03OVnk3yPWqjaBEC3SMN9DQDm3e+nEpWQvlhQVx4kedtiaQK6iBrt4K4CUJSKq5RQoyGR0SrPwPf44usGMPBB7aDpwk= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=cEi9beV2 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C02A24BA2E0A Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 6955Q5pP046782 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Oct 2026 01:26:10 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 6955Q5pP046782 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1791177971; bh=F3E+Ml/Q/5SXwtiZHHnbmZyPZvtrVfI/bcIohHaWQlM=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=cEi9beV27cZc0bC/h7fMVc6du8x6symLaFrl3DaNWlN5SIzzbK1vU0aHMPKOsOq0h 4NLQg7RBPUXnY69xbtjWRSoEwQ52I4IZB6n+YV+xvZ3ExJN3GoE4t/QsJmC+Gg4C71 gsc6VkIHRYz3C4KbcGVBlxqLd4HuiwPGksFPoZaOukUE+vC0Ejct2bkVJ5XtR0X/ul SduUBQJEsr2WnahchIBZbVTx+A5huNOAbo/sf9BjiQefgYLTkXl44yN7FBtKJQPzjG LgG3ATA1/iZQMbop+w2IOkd4ywON6n5kW90l/yT8cJKOFMC4ZbN7Sf+a+yj9EbAaAJ q+Pb8wkMiBayw== Received: by simark.ca (Postfix) id 5F0371E04F; Mon, 05 Oct 2026 01:26:05 -0400 (EDT) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 2/3] gdb/testsuite: wrap rustc in cc-with-tweaks.exp Date: Mon, 5 Oct 2026 01:25:48 -0400 Message-ID: <20261005052602.1288766-2-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261005052602.1288766-1-simon.marchi@polymtl.ca> References: <20261005052602.1288766-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 5 Oct 2026 05:26:05 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: Simon Marchi I noticed that the gdb.rust/* executables did not contain a .gdb_index when run with the cc-with-gdb-index board. This is because cc-with-tweaks.exp does not wrap RUSTC_FOR_TARGET yet. Wrap RUSTC_FOR_TARGET too, the same way as for the other compilers. I can now see a .gdb_index in the produced executable. I do not see a difference in the test results, which I guess is a good sign. Change-Id: If950c2c4f851b93142e6e7c068444043feff5612 --- gdb/testsuite/boards/cc-with-tweaks.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/boards/cc-with-tweaks.exp b/gdb/testsuite/boards/cc-with-tweaks.exp index 1f981414b396..08b4a9e4da48 100644 --- a/gdb/testsuite/boards/cc-with-tweaks.exp +++ b/gdb/testsuite/boards/cc-with-tweaks.exp @@ -44,6 +44,7 @@ set found_gcc [find_gcc] set found_gxx [find_g++] set found_gnatmake [find_gnatmake] set found_f90 [find_gfortran] +set found_rustc [find_rustc] set_board_info compiler "$found_gcc" set contrib_dir [file normalize $srcdir/../contrib] @@ -63,6 +64,10 @@ if ![info exists F90_FOR_TARGET] { set F90_FOR_TARGET "$found_f90" } set F90_FOR_TARGET "$contrib_dir/cc-with-tweaks.sh $CC_WITH_TWEAKS_FLAGS $F90_FOR_TARGET" +if ![info exists RUSTC_FOR_TARGET] { + set RUSTC_FOR_TARGET "$found_rustc" +} +set RUSTC_FOR_TARGET "$contrib_dir/cc-with-tweaks.sh $CC_WITH_TWEAKS_FLAGS $RUSTC_FOR_TARGET" set env(GDB) \ [cached_file gdb.sh "$GDB $INTERNAL_GDBFLAGS $GDBFLAGS \"\$@\"" 1] -- 2.55.0