From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 5D415385782D; Thu, 28 Apr 2022 02:39:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D415385782D Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: remove BLOCK_RANGE macro X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: f73b4922a06f5455c1f0173d3b2026dba957d1b7 X-Git-Newrev: 59197b8a96d69b49044d722b4bf097a9cc46a912 Message-Id: <20220428023948.5D415385782D@sourceware.org> Date: Thu, 28 Apr 2022 02:39:48 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2022 02:39:48 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D59197b8a96d6= 9b49044d722b4bf097a9cc46a912 commit 59197b8a96d69b49044d722b4bf097a9cc46a912 Author: Simon Marchi Date: Sun Feb 6 22:34:22 2022 -0500 gdb: remove BLOCK_RANGE macro =20 Replace with access through the block::ranges method. =20 Change-Id: I50f3ed433b997c9f354e49bc6583f540ae4b6121 Diff: --- gdb/block.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gdb/block.h b/gdb/block.h index 3782327c155..eb77f746037 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -215,10 +215,6 @@ struct global_block struct compunit_symtab *compunit_symtab; }; =20 -/* Access range array for block BL. */ - -#define BLOCK_RANGE(bl) (bl)->ranges ().data () - /* Are all addresses within a block contiguous? */ =20 #define BLOCK_CONTIGUOUS_P(bl) ((bl)->ranges ().size () =3D=3D 0 \ @@ -240,7 +236,7 @@ struct global_block =20 #define BLOCK_ENTRY_PC(bl) (BLOCK_CONTIGUOUS_P (bl) \ ? bl->start () \ - : BLOCK_RANGE (bl)[0].start ()) + : bl->ranges ()[0].start ()) =20 struct blockvector {