aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-26 10:46:31 -0700
committerTom Tromey <tromey@adacore.com>2024-03-21 12:21:23 -0600
commit3984e52f7f4bca4641b2c59ba2730f71263ad97d (patch)
tree395c143d11d435e4cfc4e42dcd4bc5ae9b209454 /gdb/block.h
parentacaf48b921453c37fc2df4151699c912940bcd25 (diff)
downloadgdb-3984e52f7f4bca4641b2c59ba2730f71263ad97d.zip
gdb-3984e52f7f4bca4641b2c59ba2730f71263ad97d.tar.gz
gdb-3984e52f7f4bca4641b2c59ba2730f71263ad97d.tar.bz2
Use addrmap_fixed in a few spots
There are a few spots in the tree that use 'addrmap' where only an addrmap_fixed will ever really be seen. This patch changes this code to use the more specific type.
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/block.h b/gdb/block.h
index 0063012..4c29f65 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -30,7 +30,7 @@ struct compunit_symtab;
struct block_namespace_info;
struct using_direct;
struct obstack;
-struct addrmap;
+struct addrmap_fixed;
/* Blocks can occupy non-contiguous address ranges. When this occurs,
startaddr and endaddr within struct block (still) specify the lowest
@@ -410,22 +410,22 @@ struct blockvector
{ return this->block (STATIC_BLOCK); }
/* Return the address -> block map of this blockvector. */
- addrmap *map ()
+ addrmap_fixed *map ()
{ return m_map; }
/* Const version of the above. */
- const addrmap *map () const
+ const addrmap_fixed *map () const
{ return m_map; }
/* Set this blockvector's address -> block map. */
- void set_map (addrmap *map)
+ void set_map (addrmap_fixed *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 *m_map;
+ addrmap_fixed *m_map;
/* Number of blocks in the list. */
int m_num_blocks;