diff options
Diffstat (limited to 'gdb/python/py-symbol.c')
-rw-r--r-- | gdb/python/py-symbol.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index 696935b..729bc64 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -147,42 +147,42 @@ static PyObject * sympy_is_constant (PyObject *self, void *closure) { struct symbol *symbol = NULL; - enum address_class class; + enum address_class theclass; SYMPY_REQUIRE_VALID (self, symbol); - class = SYMBOL_CLASS (symbol); + theclass = SYMBOL_CLASS (symbol); - return PyBool_FromLong (class == LOC_CONST || class == LOC_CONST_BYTES); + return PyBool_FromLong (theclass == LOC_CONST || theclass == LOC_CONST_BYTES); } static PyObject * sympy_is_function (PyObject *self, void *closure) { struct symbol *symbol = NULL; - enum address_class class; + enum address_class theclass; SYMPY_REQUIRE_VALID (self, symbol); - class = SYMBOL_CLASS (symbol); + theclass = SYMBOL_CLASS (symbol); - return PyBool_FromLong (class == LOC_BLOCK); + return PyBool_FromLong (theclass == LOC_BLOCK); } static PyObject * sympy_is_variable (PyObject *self, void *closure) { struct symbol *symbol = NULL; - enum address_class class; + enum address_class theclass; SYMPY_REQUIRE_VALID (self, symbol); - class = SYMBOL_CLASS (symbol); + theclass = SYMBOL_CLASS (symbol); return PyBool_FromLong (!SYMBOL_IS_ARGUMENT (symbol) - && (class == LOC_LOCAL || class == LOC_REGISTER - || class == LOC_STATIC || class == LOC_COMPUTED - || class == LOC_OPTIMIZED_OUT)); + && (theclass == LOC_LOCAL || theclass == LOC_REGISTER + || theclass == LOC_STATIC || theclass == LOC_COMPUTED + || theclass == LOC_OPTIMIZED_OUT)); } /* Implementation of gdb.Symbol.needs_frame -> Boolean. |