From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 1P9AM3OPBGts7i8AWB0awg (envelope-from ) for ; Mon, 23 Nov 2026 14:09:39 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=xPwKKAgj; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BF32A1E023; Mon, 23 Nov 2026 14:09:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 C8C631E023 for ; Mon, 23 Nov 2026 14:09:37 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC5E14394EF2 for ; Mon, 23 Nov 2026 19:09:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC5E14394EF2 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=xPwKKAgj Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id CBF4044D8F7C for ; Mon, 23 Nov 2026 19:09:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CBF4044D8F7C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CBF4044D8F7C Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795460951; cv=none; b=D6HMCE/tpNIX2Qqim3bXdmr/SAGu45HyQh5vKqhxps6oVjF4dB6kcM658D3NvBeblwEIlKB7C15G1Yh6uO6P+15+Vd70V5N+GigZyGfAZTWw7eZz5yRVILAhIIkamHx5z5LU+Bm/CxpwBSQ1JbGEiQ56YEg5Y4atdmzQxHGHotE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795460951; c=relaxed/simple; bh=Jm505RdtXsSiAEKMZ9fafmAa5xSTdWzpbikXVdPYoRg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=oNXYTfdK/e0I7Wcxt/m9FZYy5ev/2ek/OTFydgtH3Hm3RMEE1TondP57SHtzWQoM8InnldQYHgxYP+mDlSKb9PIClFlRen/9UkQlZy07h/LeremazFZz6dsxlypvN/r6fzlEZUalf+nW8IiC095ZgoLSlVoXQsl/qJnHrslsI64= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=xPwKKAgj reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBF4044D8F7C Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id VZ8ixUzJIAR1iVZPZxb6Bl; Mon, 23 Nov 2026 19:09:09 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id VZPYxepFlFhzrVZPYxutmg; Mon, 23 Nov 2026 19:09:08 +0000 X-Authority-Analysis: v=2.4 cv=JY+8rVKV c=1 sm=1 tr=0 ts=6b048f55 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=zJRp6_cAMcgA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=-QT7xOamgZ_yV54oGbkA:9 a=zgiPjhLxNE0A:10 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=B4hcIv5KEFz4CVmFjsWUBjNKGLPOSjOXw3Am2UPIdAI=; b=xPwKKAgjHLgp5k/C2tF7j3JN3e fo1skeuL11oeDLBeRjZ9oooBubulcG2kGcXzG0gOz4fg6ORJnwPsictqmJqf2wPy35zUIJ9T92ynL PpLSuT0s5+0mXpeJyyKMRQ6Ms; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:59596 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xVZPX-00000001YSg-3eZg; Mon, 23 Nov 2026 12:09:07 -0700 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Fix Rust unsized2.exp failures with newer Rust compiler In-Reply-To: <20261031202405.4002049-1-tom@tromey.com> (Tom Tromey's message of "Sat, 31 Oct 2026 14:24:05 -0600") References: <20261031202405.4002049-1-tom@tromey.com> X-Attribution: Tom Date: Mon, 23 Nov 2026 12:09:06 -0700 Message-ID: <87eccbqsa5.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.110.129 X-Source-L: No X-Exim-ID: 1xVZPX-00000001YSg-3eZg X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net (prentzel) [97.122.110.129]:59596 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfMQbPUOC/6ttoDXxHVMI7l0htDPcbaIBQZWkW+HkiwGPRCty4lbyD23TsGNVt47vMhCvUfWxeX6meFVsC8e1YtCWUwV0HBL1H2VqHjwhk1M9nEa2+Sov 7usC8ggFTA3pilWgv5gFngXQhzTZ9y56O9KLLLaNQGEujg2v7/J8jgG6ARA5cvJFNkiWULMvhoyfctG5Fm+vyscwGolfEcQ75xs= 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 >>>>> "Tom" == Tom Tromey writes: Tom> Newer versions of the Rust compiler changed to emit an array type as Tom> the trailing type of an unsized object. That is, now they look Tom> somewhat like a struct using the C "struct hack". Previously, this Tom> trailing field was emitted using the element type. Tom> This change caused some gdb failures in gdb.rust/unsized2.exp. Tom> This patch fixes the problem. It uses a heuristic to decide which Tom> type to use. I believe the heuristic should work because any possibly Tom> concrete array type in the final slot here should have a length. I'm checking this in now. Tom