diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-19 11:01:48 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-12 13:25:28 -0600 |
commit | bb051d7a307ee7a53905d1d1cb08f30f70eeba3f (patch) | |
tree | f5f549385e6651acdc44bac08b0ac6b93b39f8ac /gdb/symtab.h | |
parent | 658d5e0c6184a4f07f40c6d4d1aacfdeafd44d6a (diff) | |
download | gdb-bb051d7a307ee7a53905d1d1cb08f30f70eeba3f.zip gdb-bb051d7a307ee7a53905d1d1cb08f30f70eeba3f.tar.gz gdb-bb051d7a307ee7a53905d1d1cb08f30f70eeba3f.tar.bz2 |
Define symbol::value_block separately
This moves the definition of symbol::value_block outside of the class.
A subsequent patch will change this method to use SYMBOL_BLOCK_OPS,
and it seemed simplest to move this method out-of-line, and cleaner to
do this as a separate change.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 404d0ab..8d3f561 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1379,10 +1379,7 @@ struct symbol : public general_symbol_info, public allocate_on_obstack m_value.common_block = common_block; } - const block *value_block () const - { - return m_value.block; - } + const block *value_block () const; void set_value_block (const block *block) { @@ -1536,6 +1533,12 @@ struct block_symbol #define SYMBOL_REGISTER_OPS(symbol) ((symbol)->impl ().ops_register) #define SYMBOL_LOCATION_BATON(symbol) (symbol)->aux_value +inline const block * +symbol::value_block () const +{ + return m_value.block; +} + extern int register_symbol_computed_impl (enum address_class, const struct symbol_computed_ops *); |