diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 11:19:50 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 6c00f721c834e2c622eb995a58f02900b6d98574 (patch) | |
tree | 5eed7fcd03403d92fa6c0297582b94d1b74358fe /gdb/block.h | |
parent | 4b8791e10e574d3279e6783b58556893b0c92853 (diff) | |
download | gdb-6c00f721c834e2c622eb995a58f02900b6d98574.zip gdb-6c00f721c834e2c622eb995a58f02900b6d98574.tar.gz gdb-6c00f721c834e2c622eb995a58f02900b6d98574.tar.bz2 |
gdb: remove BLOCK_FUNCTION macro
Replace with equivalent methods.
Change-Id: I31ec00f5bf85335c8b23d306ca0fe0b84d489101
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 7fe9824..0330b6d 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -106,6 +106,14 @@ struct block void set_end (CORE_ADDR end) { m_end = end; } + /* Return this block's function symbol. */ + symbol *function () const + { return m_function; } + + /* Set this block's function symbol. */ + void set_function (symbol *function) + { m_function = function; } + /* Addresses in the executable code that are in this block. */ CORE_ADDR m_start; @@ -114,7 +122,7 @@ struct block /* The symbol that names this block, if the block is the body of a function (real or inlined); otherwise, zero. */ - struct symbol *function; + struct symbol *m_function; /* The `struct block' for the containing block, or 0 if none. @@ -154,7 +162,6 @@ struct global_block struct compunit_symtab *compunit_symtab; }; -#define BLOCK_FUNCTION(bl) (bl)->function #define BLOCK_SUPERBLOCK(bl) (bl)->superblock #define BLOCK_MULTIDICT(bl) (bl)->multidict #define BLOCK_NAMESPACE(bl) (bl)->namespace_info |