gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
This commit is contained in:
parent
d1eebf9a6f
commit
66d7f48f80
42 changed files with 147 additions and 144 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue