From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mmeiM3mFYmPRNRMAWB0awg (envelope-from ) for ; Wed, 02 Nov 2022 10:58:01 -0400 Received: by simark.ca (Postfix, from userid 112) id C2CFD1E124; Wed, 2 Nov 2022 10:58:01 -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=NVi/Uz5E; 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=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 7716B1E0D3 for ; Wed, 2 Nov 2022 10:58:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CBC12385740A for ; Wed, 2 Nov 2022 14:57:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBC12385740A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667401079; bh=bke88UTfC5S54qJTnbINqSvD8ZEwv34PCqG/3CcFB2Y=; 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=NVi/Uz5EKM7hAedO4rNOJOvdU21GPFqZnjZV6Qtzyp5AZLFuqIWfeBEoxHXnt0Dsp i0shqQDl/fkfMJHVYCqihi3NdBforFXgKrjfy75B8oJ7mu/zHChQhN9EbDEq7aCoh5 wa3Y1ICy46vjJloo7+SxAXWCeTo0Vj0XXM/kJWEw= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 811913857420 for ; Wed, 2 Nov 2022 14:56:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 811913857420 Received: from [172.16.0.64] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 125571E0D3; Wed, 2 Nov 2022 10:56:18 -0400 (EDT) Message-ID: <2c4aba2a-f30b-d73c-2988-d76c18849226@simark.ca> Date: Wed, 2 Nov 2022 10:56:18 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] gdb: new $_inferior_threads convenience variable Content-Language: fr To: Andrew Burgess , gdb-patches@sourceware.org References: <20221102143416.3307157-1-aburgess@redhat.com> In-Reply-To: <20221102143416.3307157-1-aburgess@redhat.com> 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 11/2/22 10:34, Andrew Burgess via Gdb-patches wrote: > Add a new convenience variable $_inferior_threads that contains the > number of (non-exited) threads in the current inferior. This can be > used in command scripts, or breakpoint conditions, etc to adjust the > behaviour for multi-threaded inferiors. I don't really have time to look at the code, but here's a naming nit: I think the name should contain "number" or "count" or something like that. The name "_inferior_threads" makes me think it yields a list of threads, somehow. Simon