mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb: remove BLOCK_{START,END} macros
Replace with equivalent methods. Change-Id: I10a6c8a2a86462d9d4a6a6409a3f07a6bea66310
This commit is contained in:
committed by
Simon Marchi
parent
dfb138f934
commit
4b8791e10e
@@ -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--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user