public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdb: remove BLOCK_RANGE macro
Date: Thu, 28 Apr 2022 02:39:48 +0000 (GMT)	[thread overview]
Message-ID: <20220428023948.5D415385782D@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=59197b8a96d69b49044d722b4bf097a9cc46a912

commit 59197b8a96d69b49044d722b4bf097a9cc46a912
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Sun Feb 6 22:34:22 2022 -0500

    gdb: remove BLOCK_RANGE macro
    
    Replace with access through the block::ranges method.
    
    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;
 };
 
-/* Access range array for block BL.  */
-
-#define BLOCK_RANGE(bl)		(bl)->ranges ().data ()
-
 /* Are all addresses within a block contiguous?  */
 
 #define BLOCK_CONTIGUOUS_P(bl)	((bl)->ranges ().size () == 0 \
@@ -240,7 +236,7 @@ struct global_block
 
 #define BLOCK_ENTRY_PC(bl)	(BLOCK_CONTIGUOUS_P (bl) \
 				 ? bl->start () \
-				 : BLOCK_RANGE (bl)[0].start ())
+				 : bl->ranges ()[0].start ())
 
 struct blockvector
 {


                 reply	other threads:[~2022-04-28  2:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220428023948.5D415385782D@sourceware.org \
    --to=simark@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).