gdb: remove SYMBOL_OBJFILE_OWNED macro

Add a getter and a setter for whether a symbol is objfile owned.  Remove
the corresponding macro and adjust all callers.

Change-Id: Ib7ef3718d65553ae924ca04c3fd478b0f4f3147c
This commit is contained in:
Simon Marchi 2022-01-27 22:01:10 -05:00
parent 6c9c307c67
commit 7b3ecc7555
8 changed files with 27 additions and 18 deletions

View file

@ -998,7 +998,7 @@ language_arch_info::type_and_symbol::alloc_type_symbol
symbol->m_name = type->name ();
symbol->set_language (lang, nullptr);
symbol->owner.arch = gdbarch;
SYMBOL_OBJFILE_OWNED (symbol) = 0;
symbol->set_is_objfile_owned (0);
symbol->set_section_index (0);
SYMBOL_TYPE (symbol) = type;
symbol->set_domain (VAR_DOMAIN);