diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 16:18:09 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 24d74bb5df30de096f0271d33ab4f17434cf2c49 (patch) | |
tree | ed9b5030af46d970fde9b7793680325936f320dc /gdb/block.h | |
parent | f135fe728e2d0a6168a8445a50a6d63547c4db2f (diff) | |
download | gdb-24d74bb5df30de096f0271d33ab4f17434cf2c49.zip gdb-24d74bb5df30de096f0271d33ab4f17434cf2c49.tar.gz gdb-24d74bb5df30de096f0271d33ab4f17434cf2c49.tar.bz2 |
gdb: remove BLOCK_MULTIDICT macro
Replace with equivalent methods.
Change-Id: If9a239c511a664f2a59fecb6d1cd579881b23dc2
Diffstat (limited to 'gdb/block.h')
-rw-r--r-- | gdb/block.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/block.h b/gdb/block.h index a5f931e..d0ae270 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -122,6 +122,14 @@ struct block void set_superblock (const block *superblock) { m_superblock = superblock; } + /* Return this block's multidict. */ + multidictionary *multidict () const + { return m_multidict; } + + /* Set this block's multidict. */ + void set_multidict (multidictionary *multidict) + { m_multidict = multidict; } + /* Addresses in the executable code that are in this block. */ CORE_ADDR m_start; @@ -142,7 +150,7 @@ struct block /* This is used to store the symbols in the block. */ - struct multidictionary *multidict; + struct multidictionary *m_multidict; /* Contains information about namespace-related info relevant to this block: using directives and the current namespace scope. */ @@ -170,7 +178,6 @@ struct global_block struct compunit_symtab *compunit_symtab; }; -#define BLOCK_MULTIDICT(bl) (bl)->multidict #define BLOCK_NAMESPACE(bl) (bl)->namespace_info /* Accessor for ranges field within block BL. */ |