mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Add is_array_like and to_array to language_defn
This adds new is_array_like and to_array methods to language_defn. This will be used in a subsequent patch that generalizes the new Python array- and string-handling code.
This commit is contained in:
@@ -13830,6 +13830,19 @@ public:
|
||||
|
||||
/* See language.h. */
|
||||
|
||||
bool is_array_like (struct type *type) const override
|
||||
{
|
||||
return (ada_is_constrained_packed_array_type (type)
|
||||
|| ada_is_array_descriptor_type (type));
|
||||
}
|
||||
|
||||
/* See language.h. */
|
||||
|
||||
struct value *to_array (struct value *val) const override
|
||||
{ return ada_coerce_to_simple_array (val); }
|
||||
|
||||
/* See language.h. */
|
||||
|
||||
const char *struct_too_deep_ellipsis () const override
|
||||
{ return "(...)"; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user