diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-type.c | 4 | ||||
-rw-r--r-- | gdb/python/py-value.c | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 648d8c8..e202c83 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -346,7 +346,7 @@ typy_fields_items (PyObject *self, enum gdbpy_iter_kind kind) TRY { - CHECK_TYPEDEF (checked_type); + checked_type = check_typedef (checked_type); } CATCH (except, RETURN_MASK_ALL) { @@ -477,7 +477,7 @@ typy_get_composite (struct type *type) { TRY { - CHECK_TYPEDEF (type); + type = check_typedef (type); } CATCH (except, RETURN_MASK_ALL) { diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 97eb66a..ec26bc8 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -356,7 +356,7 @@ valpy_get_dynamic_type (PyObject *self, void *closure) struct cleanup *cleanup = make_cleanup_value_free_to_mark (value_mark ()); type = value_type (val); - CHECK_TYPEDEF (type); + type = check_typedef (type); if (((TYPE_CODE (type) == TYPE_CODE_PTR) || (TYPE_CODE (type) == TYPE_CODE_REF)) @@ -1059,9 +1059,9 @@ valpy_binop (enum valpy_opcode opcode, PyObject *self, PyObject *other) struct type *ltype = value_type (arg1); struct type *rtype = value_type (arg2); - CHECK_TYPEDEF (ltype); + ltype = check_typedef (ltype); ltype = STRIP_REFERENCE (ltype); - CHECK_TYPEDEF (rtype); + rtype = check_typedef (rtype); rtype = STRIP_REFERENCE (rtype); handled = 1; @@ -1083,9 +1083,9 @@ valpy_binop (enum valpy_opcode opcode, PyObject *self, PyObject *other) struct type *ltype = value_type (arg1); struct type *rtype = value_type (arg2); - CHECK_TYPEDEF (ltype); + ltype = check_typedef (ltype); ltype = STRIP_REFERENCE (ltype); - CHECK_TYPEDEF (rtype); + rtype = check_typedef (rtype); rtype = STRIP_REFERENCE (rtype); handled = 1; @@ -1474,7 +1474,7 @@ valpy_long (PyObject *self) TRY { - CHECK_TYPEDEF (type); + type = check_typedef (type); if (!is_integral_type (type) && TYPE_CODE (type) != TYPE_CODE_PTR) @@ -1501,7 +1501,7 @@ valpy_float (PyObject *self) TRY { - CHECK_TYPEDEF (type); + type = check_typedef (type); if (TYPE_CODE (type) != TYPE_CODE_FLT) error (_("Cannot convert value to float.")); |