From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 996AD3858D37 for ; Mon, 6 Jul 2020 13:51:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 996AD3858D37 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 066Dou7H006462 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 6 Jul 2020 09:51:01 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 066Dou7H006462 Received: from [10.0.0.193] (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) (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 C34BD1E793 for ; Mon, 6 Jul 2020 09:50:56 -0400 (EDT) Subject: Re: [PATCH 00/12] More type macros removal To: gdb-patches@sourceware.org References: <20200706133833.145408-1-simon.marchi@polymtl.ca> From: Simon Marchi Message-ID: Date: Mon, 6 Jul 2020 09:50:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200706133833.145408-1-simon.marchi@polymtl.ca> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 6 Jul 2020 13:50:56 +0000 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 06 Jul 2020 13:51:04 -0000 On 2020-07-06 9:38 a.m., Simon Marchi wrote: > Here is the next installment of removal of type macros, in favor of > getter/setter methods. > > I added some assertions in some of these methods, to verify that the > method is called on a type with the expected code (this is one of the > goal of these changes). It found one case that needed to be fixed, > handled by patch 3. > > The rest should be relatively straightforward. > > Simon Marchi (12): > gdb: add type::bounds / type::set_bounds > gdb: remove TYPE_RANGE_DATA macro > gdb: make get_discrete_bounds check for non-constant range bounds > gdb: add accessors to struct dynamic_prop > gdb: remove TYPE_HIGH_BOUND and TYPE_LOW_BOUND > gdb: remove TYPE_LOW_BOUND_UNDEFINED and TYPE_HIGH_BOUND_UNDEFINED > gdb: remove TYPE_LOW_BOUND_KIND and TYPE_HIGH_BOUND_KIND > gdb: remove TYPE_ARRAY_{UPPER,LOWER}_BOUND_IS_UNDEFINED > gdb: remove TYPE_ARRAY_{LOWER,UPPER}_BOUND_VALUE > gdb: remove TYPE_BIT_STRIDE > gdb: remove TYPE_ARRAY_BIT_STRIDE > gdb: make type::bounds work for array and string types Arf, I had to send this series in two shots, because my SMTP doesn't allow sending more than 10 messages in one go. And I forgot to link the second batch with the first one using the Message-Id. Here they are, just in case: 10: https://sourceware.org/pipermail/gdb-patches/2020-July/170191.html 11: https://sourceware.org/pipermail/gdb-patches/2020-July/170190.html 12: https://sourceware.org/pipermail/gdb-patches/2020-July/170192.html Simon