diff options
author | xgsa <xgsa> | 2012-02-21 13:48:58 +0000 |
---|---|---|
committer | xgsa <xgsa> | 2012-02-21 13:48:58 +0000 |
commit | b94117c362174ff5665ec0e28915ae7a62f058eb (patch) | |
tree | 3fb217159e44b56afcc5662988c82b1c2ba9f834 /gdb/typeprint.c | |
parent | a3141fe4a3a1910f710477482813960335cd3cd8 (diff) | |
download | gdb-b94117c362174ff5665ec0e28915ae7a62f058eb.tar.gz |
gdb/
* c-valprint.c (c_value_print): Use value_rtti_indirect_type
instead of value_rtti_target_type.
* eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
instead of value_rtti_target_type.
* typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
value_rtti_target_type.
* valops.c (value_ind): Extract function readjust_indirect_value_type.
(value_rtti_target_type): Rename to ...
(value_rtti_indirect_type): ... here and make it indirect. Update
function comment.
* value.c (readjust_indirect_value_type): New function.
(coerce_ref): Support for enclosing type setting for references
with readjust_indirect_value_type.
* value.h (readjust_value_type): New declaration.
(value_rtti_target_type): Rename to ...
(value_rtti_indirect_type): ... here.
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r-- | gdb/typeprint.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c index 803d20bee6c..f257f47a006 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -139,16 +139,7 @@ whatis_exp (char *exp, int show) if (((TYPE_CODE (type) == TYPE_CODE_PTR) || (TYPE_CODE (type) == TYPE_CODE_REF)) && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_CLASS)) - { - real_type = value_rtti_target_type (val, &full, &top, &using_enc); - if (real_type) - { - if (TYPE_CODE (type) == TYPE_CODE_PTR) - real_type = lookup_pointer_type (real_type); - else - real_type = lookup_reference_type (real_type); - } - } + real_type = value_rtti_indirect_type (val, &full, &top, &using_enc); else if (TYPE_CODE (type) == TYPE_CODE_CLASS) real_type = value_rtti_type (val, &full, &top, &using_enc); } |