gdb: Add new -n flag to some info commands
[deliverable/binutils-gdb.git] / gdb / ada-varobj.c
index 3b339e00813d15fcd70047de533bbaa68ebf71d4..a4d553d378625a707041a597d9a13ec022218cee 100644 (file)
@@ -935,6 +935,9 @@ ada_value_is_changeable_p (const struct varobj *var)
   struct type *type = (var->value != nullptr
                       ? value_type (var->value.get ()) : var->type);
 
+  if (TYPE_CODE (type) == TYPE_CODE_REF)
+    type = TYPE_TARGET_TYPE (type);
+
   if (ada_is_access_to_unconstrained_array (type))
     {
       /* This is in reality a pointer to an unconstrained array.
This page took 0.025237 seconds and 4 git commands to generate.