mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-08 08:38:08 +08:00
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
This commit is contained in:
@ -997,9 +997,9 @@ typy_template_argument (PyObject *self, PyObject *args)
|
||||
}
|
||||
|
||||
sym = TYPE_TEMPLATE_ARGUMENT (type, argno);
|
||||
if (SYMBOL_CLASS (sym) == LOC_TYPEDEF)
|
||||
if (sym->aclass () == LOC_TYPEDEF)
|
||||
return type_to_type_object (SYMBOL_TYPE (sym));
|
||||
else if (SYMBOL_CLASS (sym) == LOC_OPTIMIZED_OUT)
|
||||
else if (sym->aclass () == LOC_OPTIMIZED_OUT)
|
||||
{
|
||||
PyErr_Format (PyExc_RuntimeError,
|
||||
_("Template argument is optimized out"));
|
||||
|
Reference in New Issue
Block a user