From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aOXXHaWyBWhprD0AWB0awg (envelope-from ) for ; Sun, 20 Apr 2025 22:51:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1745203877; bh=hpYMox2ypvXmN1/JAeWaRz8MrdEezHV1yE+facmLMw0=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vFbs1LT/sOBBuwVwLzPwKNFc+BPhjEpskYCdU+TRDeJvXfjTfbCU89jSry6D3y90/ ywLA2NNmJdkS/ccyAX5AXoDuDutg/12nbrQ+TjjL5kHUzC8csvqau0IRUfcAyhDeFb XSC4RCu0Pxbr5r+6EIqmWMwh8dXLHDWCdtaF0p1w= Received: by simark.ca (Postfix, from userid 112) id 67FB71E0C3; Sun, 20 Apr 2025 22:51:17 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=dqw22A0S; dkim=pass (1024-bit key) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=dqw22A0S; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 22BF31E05C for ; Sun, 20 Apr 2025 22:51:16 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9FA033858C50 for ; Mon, 21 Apr 2025 02:51:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FA033858C50 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=dqw22A0S; dkim=pass (1024-bit key) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=dqw22A0S Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 8D51F3858D29 for ; Mon, 21 Apr 2025 02:50:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D51F3858D29 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8D51F3858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745203841; cv=none; b=waIaAsEdD6TP7emCTe0njdYDv2ZFuXbk8ICA8j4rOCKeVmC9g83UH2xWK9enY9bVt2xWQ8DFSUFMT/MUEBSpePCc419vBd4EeDh8uHuodn3sWqU8gjbdPuYACCVV2vZxl0adnX259/ekZ1qEs/UzeFc967yB3a1TamHrNKEPmDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745203841; c=relaxed/simple; bh=hpYMox2ypvXmN1/JAeWaRz8MrdEezHV1yE+facmLMw0=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=mbYfflftZLwSpuhg/sctXamUdb1qphnrrbA0CRxlgqFEYZ/G7HWxD1XMVdWPd8HiTX3897qhjZmzYzyqU9WBOUmeFfwOTnQtu0b9rFN801IFzBwBVxx7zPDRNGqE/WAn5lML7l8dUEaYlSyqOP3SSjzEL3TB3EvNFcSYF4xcy5U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D51F3858D29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1745203840; bh=hpYMox2ypvXmN1/JAeWaRz8MrdEezHV1yE+facmLMw0=; h=Date:Subject:To:References:From:In-Reply-To:From; b=dqw22A0Sxj/+0yNr1QjuVSF5EoEzOucONYd6I5m/PMgh+54ycjMJqdZNKH/Hm1pAK AOMVwtDUv/8isSDlXrhqxblzlHxYeKcsCeB8L5xSoBr+BKDl4Cqs1CfBhxGL5nbmfA D9OVKdK7qc0cH3tjFGJBwjxyfX3ZjS5iNi9Fhv6M= Received: by simark.ca (Postfix, from userid 112) id C60011E0C3; Sun, 20 Apr 2025 22:50:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1745203840; bh=hpYMox2ypvXmN1/JAeWaRz8MrdEezHV1yE+facmLMw0=; h=Date:Subject:To:References:From:In-Reply-To:From; b=dqw22A0Sxj/+0yNr1QjuVSF5EoEzOucONYd6I5m/PMgh+54ycjMJqdZNKH/Hm1pAK AOMVwtDUv/8isSDlXrhqxblzlHxYeKcsCeB8L5xSoBr+BKDl4Cqs1CfBhxGL5nbmfA D9OVKdK7qc0cH3tjFGJBwjxyfX3ZjS5iNi9Fhv6M= Received: from [10.0.0.11] (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id E78C81E05C; Sun, 20 Apr 2025 22:50:39 -0400 (EDT) Message-ID: <89815abe-5e45-4db4-8554-55db259ca509@simark.ca> Date: Sun, 20 Apr 2025 22:50:39 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 03/28] Emit some type declarations in .gdb_index To: Tom Tromey , gdb-patches@sourceware.org References: <20250402-search-in-psyms-v2-0-ea91704487cb@tromey.com> <20250402-search-in-psyms-v2-3-ea91704487cb@tromey.com> Content-Language: en-US From: Simon Marchi In-Reply-To: <20250402-search-in-psyms-v2-3-ea91704487cb@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 2025-04-02 19:45, Tom Tromey wrote: > If you run struct-decl.exp with the .gdb_index board, you will see > that "the_type" is not emitted in the index. This would cause a > failure in this series. The fix is to ensure that certain necessary > type declarations are emitted. > > However, a naive fix here will regress stub-array-size.exp, where a > type declaration and a type definition are both seen -- but the > declaration is seen first and causes a failure. This is handled by > adding some code (including a mild hack) to filter out type > declarations when a corresponding type definition is seen. I don't really understand the use of GDB_INDEX_SYMBOL_KIND_UNUSED5, what does it mean? Simon