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/guile | |
parent | 6c9c307c67043b55a209af402246404d89f992c9 (diff) | |
download | fsf-binutils-gdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.zip fsf-binutils-gdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.tar.gz fsf-binutils-gdb-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/guile')
-rw-r--r-- | gdb/guile/scm-symbol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-symbol.c b/gdb/guile/scm-symbol.c index 9816a90..caad90f 100644 --- a/gdb/guile/scm-symbol.c +++ b/gdb/guile/scm-symbol.c @@ -101,7 +101,7 @@ syscm_get_symbol_map (struct symbol *symbol) { htab_t htab; - if (SYMBOL_OBJFILE_OWNED (symbol)) + if (symbol->is_objfile_owned ()) { struct objfile *objfile = symbol_objfile (symbol); @@ -362,7 +362,7 @@ gdbscm_symbol_symtab (SCM self) = syscm_get_valid_symbol_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME); const struct symbol *symbol = s_smob->symbol; - if (!SYMBOL_OBJFILE_OWNED (symbol)) + if (!symbol->is_objfile_owned ()) return SCM_BOOL_F; return stscm_scm_from_symtab (symbol_symtab (symbol)); } |