* ada-lang.c (find_parallel_type_by_descriptive_type):
Limit the fallback to name-based lookups to the case where
the type is a constrained packed array.
+2010-01-15 Joel Brobecker <brobecker@adacore.com>
+
+ Do not use name-based lookup for unconstrained packed arrays.
+ * ada-lang.c (find_parallel_type_by_descriptive_type):
+ Limit the fallback to name-based lookups to the case where
+ the type is a constrained packed array.
+
2010-01-15 Joel Brobecker <brobecker@adacore.com>
Enhance gdb-gdb.py to handle main_type.type_specific.
older compilers, the descriptive type information is either absent or
irrelevant when it comes to packed arrays so the above lookup fails.
Fall back to using a parallel lookup by name in this case. */
- if (result == NULL && ada_is_packed_array_type (type))
+ if (result == NULL && ada_is_constrained_packed_array_type (type))
return ada_find_any_type (name);
return result;