mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb: remove BLOCK_RANGE macro
Replace with access through the block::ranges method. Change-Id: I50f3ed433b997c9f354e49bc6583f540ae4b6121
This commit is contained in:
committed by
Simon Marchi
parent
f73b4922a0
commit
59197b8a96
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user