diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-21 22:26:24 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 66d7f48f8045adf266046df7ceb84161d5678cfa (patch) | |
tree | 473af71237afd358293f506901cdb13372d8dd72 /gdb/python/py-symbol.c | |
parent | d1eebf9a6f02786eb0d5f6b961b8d692d23e77b1 (diff) | |
download | binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.zip binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.gz binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.bz2 |
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
Diffstat (limited to 'gdb/python/py-symbol.c')
-rw-r--r-- | gdb/python/py-symbol.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index f636f51..fe62809 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -131,7 +131,7 @@ sympy_get_addr_class (PyObject *self, void *closure) SYMPY_REQUIRE_VALID (self, symbol); - return gdb_py_object_from_longest (SYMBOL_CLASS (symbol)).release (); + return gdb_py_object_from_longest (symbol->aclass ()).release (); } static PyObject * @@ -152,7 +152,7 @@ sympy_is_constant (PyObject *self, void *closure) SYMPY_REQUIRE_VALID (self, symbol); - theclass = SYMBOL_CLASS (symbol); + theclass = symbol->aclass (); return PyBool_FromLong (theclass == LOC_CONST || theclass == LOC_CONST_BYTES); } @@ -165,7 +165,7 @@ sympy_is_function (PyObject *self, void *closure) SYMPY_REQUIRE_VALID (self, symbol); - theclass = SYMBOL_CLASS (symbol); + theclass = symbol->aclass (); return PyBool_FromLong (theclass == LOC_BLOCK); } @@ -178,7 +178,7 @@ sympy_is_variable (PyObject *self, void *closure) SYMPY_REQUIRE_VALID (self, symbol); - theclass = SYMBOL_CLASS (symbol); + theclass = symbol->aclass (); return PyBool_FromLong (!SYMBOL_IS_ARGUMENT (symbol) && (theclass == LOC_LOCAL || theclass == LOC_REGISTER @@ -260,7 +260,7 @@ sympy_value (PyObject *self, PyObject *args) } SYMPY_REQUIRE_VALID (self, symbol); - if (SYMBOL_CLASS (symbol) == LOC_TYPEDEF) + if (symbol->aclass () == LOC_TYPEDEF) { PyErr_SetString (PyExc_TypeError, "cannot get the value of a typedef"); return NULL; |