aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-02-06 22:34:22 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-27 22:05:03 -0400
commit59197b8a96d69b49044d722b4bf097a9cc46a912 (patch)
tree67bbcd77a6122ec4f19d60c32886ee1c98befdc3 /gdb/block.h
parentf73b4922a06f5455c1f0173d3b2026dba957d1b7 (diff)
downloadgdb-59197b8a96d69b49044d722b4bf097a9cc46a912.zip
gdb-59197b8a96d69b49044d722b4bf097a9cc46a912.tar.gz
gdb-59197b8a96d69b49044d722b4bf097a9cc46a912.tar.bz2
gdb: remove BLOCK_RANGE macro
Replace with access through the block::ranges method. Change-Id: I50f3ed433b997c9f354e49bc6583f540ae4b6121
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/block.h b/gdb/block.h
index 3782327..eb77f74 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
{