diff options
Diffstat (limited to 'gdb/python/py-xmethods.c')
-rw-r--r-- | gdb/python/py-xmethods.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index d6d607d..d3afd26 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -423,7 +423,7 @@ python_xmethod_worker::do_get_result_type (value *obj, return EXT_LANG_RC_OK; } - obj_type = check_typedef (value_type (obj)); + obj_type = check_typedef (obj->type ()); this_type = check_typedef (type_object_to_type (m_this_type)); if (obj_type->code () == TYPE_CODE_PTR) { @@ -508,7 +508,7 @@ python_xmethod_worker::invoke (struct value *obj, struct type *obj_type, *this_type; struct value *res = NULL; - obj_type = check_typedef (value_type (obj)); + obj_type = check_typedef (obj->type ()); this_type = check_typedef (type_object_to_type (m_this_type)); if (obj_type->code () == TYPE_CODE_PTR) { |