mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-16 23:06:48 +08:00
gdb: remove SYMBOL_TYPE macro
Add a getter and a setter for a symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: Ie1a137744c5bfe1df4d4f9ae5541c5299577c8de
This commit is contained in:
@ -998,7 +998,7 @@ typy_template_argument (PyObject *self, PyObject *args)
|
||||
|
||||
sym = TYPE_TEMPLATE_ARGUMENT (type, argno);
|
||||
if (sym->aclass () == LOC_TYPEDEF)
|
||||
return type_to_type_object (SYMBOL_TYPE (sym));
|
||||
return type_to_type_object (sym->type ());
|
||||
else if (sym->aclass () == LOC_OPTIMIZED_OUT)
|
||||
{
|
||||
PyErr_Format (PyExc_RuntimeError,
|
||||
|
Reference in New Issue
Block a user