X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fvarobj.c;h=3358be4e77b48886f66301a592dad6e01d10938a;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=8a7b7108f89461c5bb8a458122a44929341c609e;hpb=6c2659886f7018fcca26ee0fc813bc9748fb8513;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/varobj.c b/gdb/varobj.c index 8a7b7108f8..3358be4e77 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1271,7 +1271,7 @@ install_new_value (struct varobj *var, struct value *value, bool initial) if (value) value = coerce_ref (value); - if (var->type && TYPE_CODE (var->type) == TYPE_CODE_UNION) + if (var->type && var->type->code () == TYPE_CODE_UNION) /* For unions, we need to fetch the value implicitly because of implementation of union member fetch. When gdb creates a value for a field and the value of the enclosing @@ -2398,7 +2398,7 @@ varobj_editable_p (const struct varobj *var) type = varobj_get_value_type (var); - switch (TYPE_CODE (type)) + switch (type->code ()) { case TYPE_CODE_STRUCT: case TYPE_CODE_UNION: @@ -2445,7 +2445,7 @@ varobj_default_value_is_changeable_p (const struct varobj *var) type = varobj_get_value_type (var); - switch (TYPE_CODE (type)) + switch (type->code ()) { case TYPE_CODE_STRUCT: case TYPE_CODE_UNION: