From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id AB8143857C53 for ; Mon, 6 Jul 2020 13:38:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AB8143857C53 X-ASG-Debug-ID: 1594042718-0c856e6bfb3602f0001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id tCDcCLS7PRfgB98r (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 06 Jul 2020 09:38:38 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) by smtp.ebox.ca (Postfix) with ESMTP id 792D4441D64; Mon, 6 Jul 2020 09:38:38 -0400 (EDT) From: Simon Marchi X-Barracuda-Effective-Source-IP: 173-246-6-90.qc.cable.ebox.net[173.246.6.90] X-Barracuda-Apparent-Source-IP: 173.246.6.90 X-Barracuda-RBL-IP: 173.246.6.90 To: gdb-patches@sourceware.org Subject: [PATCH 00/12] More type macros removal Date: Mon, 6 Jul 2020 09:38:21 -0400 X-ASG-Orig-Subj: [PATCH 00/12] More type macros removal Message-Id: <20200706133833.145408-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1594042718 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 2548 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.83013 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no 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:38:41 -0000 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 gdb/ada-lang.c | 22 ++-- gdb/ada-tasks.c | 7 +- gdb/ada-typeprint.c | 8 +- gdb/ada-valprint.c | 2 +- gdb/c-typeprint.c | 4 +- gdb/c-varobj.c | 18 ++- gdb/compile/compile-c-symbols.c | 6 +- gdb/compile/compile-c-types.c | 10 +- gdb/compile/compile-cplus-types.c | 10 +- gdb/ctfread.c | 2 +- gdb/dwarf2/loc.c | 16 +-- gdb/dwarf2/read.c | 71 +++++------- gdb/eval.c | 8 +- gdb/f-typeprint.c | 4 +- gdb/f-valprint.c | 10 +- gdb/gdbtypes.c | 186 +++++++++++++----------------- gdb/gdbtypes.h | 162 +++++++++++++++++++------- gdb/gnu-v3-abi.c | 3 +- gdb/guile/scm-type.c | 7 +- gdb/m2-typeprint.c | 20 ++-- gdb/m2-valprint.c | 4 +- gdb/mdebugread.c | 8 +- gdb/p-typeprint.c | 10 +- gdb/p-valprint.c | 2 +- gdb/printcmd.c | 3 +- gdb/python/py-type.c | 7 +- gdb/rust-lang.c | 8 +- gdb/type-stack.c | 3 +- gdb/valarith.c | 11 +- gdb/valops.c | 2 +- gdb/value.c | 4 +- 31 files changed, 337 insertions(+), 301 deletions(-) -- 2.27.0