diff options
Diffstat (limited to 'gdb/block.h')
-rw-r--r-- | gdb/block.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gdb/block.h b/gdb/block.h index b6b8b86..b9f4e97 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -296,12 +296,24 @@ struct blockvector const struct block *static_block () const { return this->block (STATIC_BLOCK); } + /* Return the address -> block map of this blockvector. */ + addrmap *map () + { return m_map; } + + /* Const version of the above. */ + const addrmap *map () const + { return m_map; } + + /* Set this blockvector's address -> block map. */ + void set_map (addrmap *map) + { m_map = map; } + +private: /* An address map mapping addresses to blocks in this blockvector. This pointer is zero if the blocks' start and end addresses are enough. */ - struct addrmap *map; + struct addrmap *m_map; -private: /* Number of blocks in the list. */ int m_num_blocks; @@ -309,8 +321,6 @@ private: struct block *m_blocks[1]; }; -#define BLOCKVECTOR_MAP(blocklist) ((blocklist)->map) - /* Return the objfile of BLOCK, which must be non-NULL. */ extern struct objfile *block_objfile (const struct block *block); |