diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 11:41:38 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | f135fe728e2d0a6168a8445a50a6d63547c4db2f (patch) | |
tree | 947174858fcdf60492112022ce9d87aff69d1ffd /gdb/block.h | |
parent | 6c00f721c834e2c622eb995a58f02900b6d98574 (diff) | |
download | binutils-f135fe728e2d0a6168a8445a50a6d63547c4db2f.zip binutils-f135fe728e2d0a6168a8445a50a6d63547c4db2f.tar.gz binutils-f135fe728e2d0a6168a8445a50a6d63547c4db2f.tar.bz2 |
gdb: remove BLOCK_SUPERBLOCK macro
Replace with equivalent methods.
Change-Id: I334a319909a50b5cc5570a45c38c70e10dc00630
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 0330b6d..a5f931e 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -114,6 +114,14 @@ struct block void set_function (symbol *function) { m_function = function; } + /* Return this block's superblock. */ + const block *superblock () const + { return m_superblock; } + + /* Set this block's superblock. */ + void set_superblock (const block *superblock) + { m_superblock = superblock; } + /* Addresses in the executable code that are in this block. */ CORE_ADDR m_start; @@ -130,7 +138,7 @@ struct block case of C) is the STATIC_BLOCK. The superblock of the STATIC_BLOCK is the GLOBAL_BLOCK. */ - const struct block *superblock; + const struct block *m_superblock; /* This is used to store the symbols in the block. */ @@ -162,7 +170,6 @@ struct global_block struct compunit_symtab *compunit_symtab; }; -#define BLOCK_SUPERBLOCK(bl) (bl)->superblock #define BLOCK_MULTIDICT(bl) (bl)->multidict #define BLOCK_NAMESPACE(bl) (bl)->namespace_info |