aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-28 10:59:38 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-27 22:05:02 -0400
commit4b8791e10e574d3279e6783b58556893b0c92853 (patch)
treee348e10e55388797f1bb53f3b6ae5cc990f1d223 /gdb/block.c
parentdfb138f9344ca671e7e16fffe36779d38d18c490 (diff)
downloadfsf-binutils-gdb-4b8791e10e574d3279e6783b58556893b0c92853.zip
fsf-binutils-gdb-4b8791e10e574d3279e6783b58556893b0c92853.tar.gz
fsf-binutils-gdb-4b8791e10e574d3279e6783b58556893b0c92853.tar.bz2
gdb: remove BLOCK_{START,END} macros
Replace with equivalent methods. Change-Id: I10a6c8a2a86462d9d4a6a6409a3f07a6bea66310
Diffstat (limited to 'gdb/block.c')
-rw-r--r--gdb/block.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/block.c b/gdb/block.c
index bab6868..a4678ca 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -155,7 +155,7 @@ find_block_in_blockvector (const struct blockvector *bl, CORE_ADDR pc)
{
half = (top - bot + 1) >> 1;
b = BLOCKVECTOR_BLOCK (bl, bot + half);
- if (BLOCK_START (b) <= pc)
+ if (b->start () <= pc)
bot += half;
else
top = bot + half;
@@ -166,9 +166,9 @@ find_block_in_blockvector (const struct blockvector *bl, CORE_ADDR pc)
while (bot >= STATIC_BLOCK)
{
b = BLOCKVECTOR_BLOCK (bl, bot);
- if (!(BLOCK_START (b) <= pc))
+ if (!(b->start () <= pc))
return NULL;
- if (BLOCK_END (b) > pc)
+ if (b->end () > pc)
return b;
bot--;
}