X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fp-exp.y;h=5a61276fb3baa95bf0b6c795a75849c63bb85692;hb=046245839052222161e5cb1233a0f4ca55cfffba;hp=a80f8e9275b0263dde58d8c1684414355284db6f;hpb=55bc2f369cdb7533c18144abed052fce62e66000;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/p-exp.y b/gdb/p-exp.y index a80f8e9275..5a61276fb3 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -521,7 +521,7 @@ exp : THIS /* we need type of this */ this_val = value_of_this (0); if (this_val) - this_type = this_val->type; + this_type = value_type (this_val); else this_type = NULL; if (this_type) @@ -672,7 +672,7 @@ variable: name_not_typename /* we need type of this */ this_val = value_of_this (0); if (this_val) - this_type = this_val->type; + this_type = value_type (this_val); else this_type = NULL; if (this_type)