X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fc-typeprint.c;h=35cfd219edcae6f723d2aa8f01af9a6bcf6568aa;hb=3d967001ecd3b325fc39d7f53ebf7054d1ecd503;hp=8ed6c06781117caea9d20b12539843db010213a5;hpb=262abc0d67af006a709d0935940f9c9f5f7c5ee5;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 8ed6c06781..35cfd219ed 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -780,8 +780,8 @@ c_type_print_varspec_suffix (struct type *type, fprintf_filtered (stream, (is_vector ? " __attribute__ ((vector_size(" : "[")); /* Bounds are not yet resolved, print a bounds placeholder instead. */ - if (TYPE_HIGH_BOUND_KIND (TYPE_INDEX_TYPE (type)) == PROP_LOCEXPR - || TYPE_HIGH_BOUND_KIND (TYPE_INDEX_TYPE (type)) == PROP_LOCLIST) + if (TYPE_HIGH_BOUND_KIND (type->index_type ()) == PROP_LOCEXPR + || TYPE_HIGH_BOUND_KIND (type->index_type ()) == PROP_LOCLIST) fprintf_filtered (stream, "variable length"); else if (get_array_bounds (type, &low_bound, &high_bound)) fprintf_filtered (stream, "%s",