aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-27 22:01:10 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit7b3ecc7555438f05dda657d0ed6a43ee71a3901d (patch)
tree851e01af89a5dda9ab1ea9c05b4059eda7497907 /gdb/python
parent6c9c307c67043b55a209af402246404d89f992c9 (diff)
downloadgdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.zip
gdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.tar.gz
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/python')
-rw-r--r--gdb/python/py-symbol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c
index fe62809..7084743 100644
--- a/gdb/python/py-symbol.c
+++ b/gdb/python/py-symbol.c
@@ -88,7 +88,7 @@ sympy_get_symtab (PyObject *self, void *closure)
SYMPY_REQUIRE_VALID (self, symbol);
- if (!SYMBOL_OBJFILE_OWNED (symbol))
+ if (!symbol->is_objfile_owned ())
Py_RETURN_NONE;
return symtab_to_symtab_object (symbol_symtab (symbol));
@@ -302,7 +302,7 @@ set_symbol (symbol_object *obj, struct symbol *symbol)
{
obj->symbol = symbol;
obj->prev = NULL;
- if (SYMBOL_OBJFILE_OWNED (symbol)
+ if (symbol->is_objfile_owned ()
&& symbol_symtab (symbol) != NULL)
{
struct objfile *objfile = symbol_objfile (symbol);
@@ -348,7 +348,7 @@ sympy_dealloc (PyObject *obj)
if (sym_obj->prev)
sym_obj->prev->next = sym_obj->next;
else if (sym_obj->symbol != NULL
- && SYMBOL_OBJFILE_OWNED (sym_obj->symbol)
+ && sym_obj->symbol->is_objfile_owned ()
&& symbol_symtab (sym_obj->symbol) != NULL)
{
set_objfile_data (symbol_objfile (sym_obj->symbol),