From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id CDBB43858D39 for ; Mon, 30 Jan 2023 20:07:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CDBB43858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [172.16.0.192] (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 698E21E112; Mon, 30 Jan 2023 15:07:34 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1675109254; bh=PoKTEeSsEr2Z3wKqq7gUmI5XjvXC01R9yvuOQVQ0LZE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qGpoCv9cP3TOtHctjpsXVkD0Uo50DrJJSVWjnwSdh3Wd5CRFmmKqx0sQMCh/CFDGW 5ikRZN4+FwArlG5VwdbAEM3xsZqvvMG/82g/kVdqVawx5WpGp3Tw4X+6fqSqX0aro0 EV6+iPwYDLS+N9qbTYA+oLo0WCe7gULK/R+CovYM= Message-ID: Date: Mon, 30 Jan 2023 15:07:33 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 07/31] enum_flags to_string Content-Language: fr To: Pedro Alves , gdb-patches@sourceware.org Cc: Simon Marchi References: <20221212203101.1034916-1-pedro@palves.net> <20221212203101.1034916-8-pedro@palves.net> From: Simon Marchi In-Reply-To: <20221212203101.1034916-8-pedro@palves.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/12/22 15:30, Pedro Alves wrote: > This commit introduces shared infrastructure that can be used to > implement enum_flags -> to_string functions. With this, if we want to > support converting a given enum_flags specialization to string, we > just need to implement a function that provides the enumerator->string > mapping, like so: > > ... I pushed this patch, since I was using it in my DWARF cooked index dump patch. Simon