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

@ -3352,7 +3352,7 @@ See set/show multiple-symbol."));
&& SYMBOL_TYPE (syms[i].symbol)->code () == TYPE_CODE_ENUM);
struct symtab *symtab = NULL;
if (SYMBOL_OBJFILE_OWNED (syms[i].symbol))
if (syms[i].symbol->is_objfile_owned ())
symtab = symbol_symtab (syms[i].symbol);
if (SYMBOL_LINE (syms[i].symbol) != 0 && symtab != NULL)
@ -4376,7 +4376,7 @@ cache_symbol (const char *name, domain_enum domain, struct symbol *sym,
/* Symbols for builtin types don't have a block.
For now don't cache such symbols. */
if (sym != NULL && !SYMBOL_OBJFILE_OWNED (sym))
if (sym != NULL && !sym->is_objfile_owned ())
return;
/* If the symbol is a local symbol, then do not cache it, as a search