From 509971ae766fdba08437cbd8bc266aae8d2aa9e9 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 12 Jul 2020 22:58:53 -0400 Subject: gdb: remove TYPE_ARRAY_BIT_STRIDE Remove it and update all callers to use the equivalent accessor methods. A subsequent patch will make type::bit_stride work for array types (effectively replacing this macro), but I wanted to keep this patch a simple mechanical change. gdb/ChangeLog: * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all callers to use the equivalent accessor methods. Change-Id: I09e14bd45075f98567adce8a0b93edea7722f812 --- gdb/f-valprint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/f-valprint.c') diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index bda4803..17e15f9 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -124,7 +124,8 @@ f77_print_array_1 (int nss, int ndimensions, struct type *type, struct gdbarch *gdbarch = get_type_arch (type); size_t dim_size = type_length_units (TYPE_TARGET_TYPE (type)); int unit_size = gdbarch_addressable_memory_unit_size (gdbarch); - size_t byte_stride = TYPE_ARRAY_BIT_STRIDE (type) / (unit_size * 8); + size_t byte_stride + = type->index_type ()->bounds ()->bit_stride () / (unit_size * 8); if (byte_stride == 0) byte_stride = dim_size; size_t offs = 0; -- cgit v1.1