diff options
Diffstat (limited to 'gdb/xml-tdesc.c')
-rw-r--r-- | gdb/xml-tdesc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c index 95fd60f..e56cb6a 100644 --- a/gdb/xml-tdesc.c +++ b/gdb/xml-tdesc.c @@ -277,13 +277,9 @@ tdesc_start_vector (struct gdb_xml_parser *parser, gdb_xml_error (parser, _("Vector \"%s\" references undefined type \"%s\""), id, field_type_id); - /* A vector is just an array plus a special flag. */ - range_type = create_range_type (NULL, builtin_type_int, 0, count - 1); - type = create_array_type (NULL, field_type, range_type); + type = init_vector_type (field_type, count); TYPE_NAME (type) = xstrdup (id); - TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR; - tdesc_record_type (data->current_feature, type); } |