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

@@ -1686,7 +1686,7 @@ info_address_command (const char *exp, int from_tty)
puts_filtered (sym->print_name ());
printf_filtered ("\" is ");
val = SYMBOL_VALUE (sym);
if (SYMBOL_OBJFILE_OWNED (sym))
if (sym->is_objfile_owned ())
section = sym->obj_section (symbol_objfile (sym));
else
section = NULL;