aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 2825697..ef9e653 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1115,7 +1115,7 @@ struct symbol : public general_symbol_info, public allocate_on_obstack
/* Class-initialization of bitfields is only allowed in C++20. */
: m_domain (UNDEF_DOMAIN),
m_aclass_index (0),
- is_objfile_owned (1),
+ m_is_objfile_owned (1),
is_argument (0),
is_inlined (0),
maybe_copied (0),
@@ -1168,6 +1168,16 @@ struct symbol : public general_symbol_info, public allocate_on_obstack
m_domain = domain;
}
+ bool is_objfile_owned () const
+ {
+ return m_is_objfile_owned;
+ }
+
+ void set_is_objfile_owned (bool is_objfile_owned)
+ {
+ m_is_objfile_owned = is_objfile_owned;
+ }
+
/* Data type of value */
struct type *type = nullptr;
@@ -1199,7 +1209,7 @@ struct symbol : public general_symbol_info, public allocate_on_obstack
/* If non-zero then symbol is objfile-owned, use owner.symtab.
Otherwise symbol is arch-owned, use owner.arch. */
- unsigned int is_objfile_owned : 1;
+ unsigned int m_is_objfile_owned : 1;
/* Whether this is an argument. */
@@ -1270,7 +1280,6 @@ struct block_symbol
/* Note: There is no accessor macro for symbol.owner because it is
"private". */
-#define SYMBOL_OBJFILE_OWNED(symbol) ((symbol)->is_objfile_owned)
#define SYMBOL_IS_ARGUMENT(symbol) (symbol)->is_argument
#define SYMBOL_INLINED(symbol) (symbol)->is_inlined
#define SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION(symbol) \