diff options
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 3d7f61f..3b7faee 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -383,8 +383,8 @@ print_array_type (struct type *type, struct ui_file *stream, int show, gdb_printf (stream, ", "); print_range (arr_type->index_type (), stream, 0 /* bounds_preferred_p */); - if (TYPE_FIELD_BITSIZE (arr_type, 0) > 0) - bitsize = TYPE_FIELD_BITSIZE (arr_type, 0); + if (arr_type->field (0).bitsize () > 0) + bitsize = arr_type->field (0).bitsize (); /* A multi-dimensional array is represented using a sequence of array types. If one of these types has a name, then it is not another dimension of the outer @@ -408,8 +408,8 @@ print_array_type (struct type *type, struct ui_file *stream, int show, gdb_printf (stream, ", "); print_range_type (range_desc_type->field (k).type (), stream, 0 /* bounds_preferred_p */); - if (TYPE_FIELD_BITSIZE (arr_type, 0) > 0) - bitsize = TYPE_FIELD_BITSIZE (arr_type, 0); + if (arr_type->field (0).bitsize () > 0) + bitsize = arr_type->field (0).bitsize (); } } } |