diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-27 22:01:10 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 7b3ecc7555438f05dda657d0ed6a43ee71a3901d (patch) | |
tree | 851e01af89a5dda9ab1ea9c05b4059eda7497907 /gdb/ada-lang.c | |
parent | 6c9c307c67043b55a209af402246404d89f992c9 (diff) | |
download | binutils-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.zip binutils-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.tar.gz binutils-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.tar.bz2 |
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
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index dd1be60..77d6c07 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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 |