diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-type.c | 4 | ||||
-rw-r--r-- | gdb/python/py-value.c | 5 | ||||
-rw-r--r-- | gdb/python/py-xmethods.c | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index d3506ca..c4d5917 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -626,7 +626,7 @@ typy_reference (PyObject *self, PyObject *args) TRY { - type = lookup_reference_type (type); + type = lookup_lvalue_reference_type (type); } CATCH (except, RETURN_MASK_ALL) { @@ -786,7 +786,7 @@ typy_lookup_type (struct demangle_component *demangled, switch (demangled_type) { case DEMANGLE_COMPONENT_REFERENCE: - rtype = lookup_reference_type (type); + rtype = lookup_lvalue_reference_type (type); break; case DEMANGLE_COMPONENT_POINTER: rtype = lookup_pointer_type (type); diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 124d398..a56e555 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -369,7 +369,7 @@ valpy_get_dynamic_type (PyObject *self, void *closure) if (was_pointer) type = lookup_pointer_type (type); else - type = lookup_reference_type (type); + type = lookup_lvalue_reference_type (type); } } else if (TYPE_CODE (type) == TYPE_CODE_STRUCT) @@ -801,7 +801,8 @@ valpy_getitem (PyObject *self, PyObject *key) if (TYPE_CODE (val_type) == TYPE_CODE_PTR) res_val = value_cast (lookup_pointer_type (base_class_type), tmp); else if (TYPE_CODE (val_type) == TYPE_CODE_REF) - res_val = value_cast (lookup_reference_type (base_class_type), tmp); + res_val = value_cast (lookup_lvalue_reference_type (base_class_type), + tmp); else res_val = value_cast (base_class_type, tmp); } diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index d293c71..8a9bb9b 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -466,7 +466,7 @@ gdbpy_get_xmethod_result_type (const struct extension_language_defn *extlang, } else if (TYPE_CODE (obj_type) == TYPE_CODE_REF) { - struct type *this_ref = lookup_reference_type (this_type); + struct type *this_ref = lookup_lvalue_reference_type (this_type); if (!types_equal (obj_type, this_ref)) obj = value_cast (this_ref, obj); @@ -554,7 +554,7 @@ gdbpy_invoke_xmethod (const struct extension_language_defn *extlang, } else if (TYPE_CODE (obj_type) == TYPE_CODE_REF) { - struct type *this_ref = lookup_reference_type (this_type); + struct type *this_ref = lookup_lvalue_reference_type (this_type); if (!types_equal (obj_type, this_ref)) obj = value_cast (this_ref, obj); |