From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ztMoF6WaJWNZRjsAWB0awg (envelope-from ) for ; Sat, 17 Sep 2022 06:00:05 -0400 Received: by simark.ca (Postfix, from userid 112) id 507641E112; Sat, 17 Sep 2022 06:00:05 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Fh0wmAg8; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E8A551E0D3 for ; Sat, 17 Sep 2022 06:00:03 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F4DE3831A70 for ; Sat, 17 Sep 2022 10:00:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F4DE3831A70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663408803; bh=nvrMtV87brZbLefTPw2T5JYceQxAG/os2lmCFrG1h88=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Fh0wmAg81SUYjvZY/Rh5kk4yMkmCm5w/+AsqAdxH9Cyo/RYzDUg1QywSun+6ABHCj I/4Orw0uBINsadBC19aOcC+ymUtkqF6+WUrg9QV5GOiCNnxJBCvKlypHL0awXmIWsP MSHr29Xbijlvs46sIhuYjBs2azpX5RhgsrSHBPOU= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 7A24E3835567 for ; Sat, 17 Sep 2022 09:59:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A24E3835567 Received: from [10.9.7.166] (vpn-konference.ms.mff.cuni.cz [195.113.20.101]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id B4B3D1E0D3; Sat, 17 Sep 2022 05:59:42 -0400 (EDT) Message-ID: <8038e1cd-b065-4cfd-d5d9-af6d957c92fc@simark.ca> Date: Sat, 17 Sep 2022 05:59:40 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH][gdb/symtab] Add all_comp_units_cu/tu Content-Language: fr To: Tom de Vries , gdb-patches@sourceware.org References: <20220916124250.GA19747@delia> In-Reply-To: <20220916124250.GA19747@delia> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 9/16/22 08:42, Tom de Vries via Gdb-patches wrote: > Hi, > > Add all_comp_units_cu and all_comp_units_tu arrayviews on all_comp_units, > which allows us to: > - easily get the number of CUs or TUs in all_comp_units, and > - easily access the nth CU or TU. I think it's a good idea, but I would suggest reworking the naming a bit. I find it unclear to comp_units_cu and comp_units_tu, given that "cu" means comp_units. I would suggest renaming all_comp_units to all_units (since it contains units of different kinds), and then you can have all_comp_units and all_type_units for the array views. Simon