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/valarith.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/valarith.c') diff --git a/gdb/valarith.c b/gdb/valarith.c index 0b1f43f..775c603 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -191,7 +191,7 @@ value_subscripted_rvalue (struct value *array, LONGEST index, LONGEST lowerbound /* Fetch the bit stride and convert it to a byte stride, assuming 8 bits in a byte. */ - LONGEST stride = TYPE_ARRAY_BIT_STRIDE (array_type); + LONGEST stride = array_type->index_type ()->bounds ()->bit_stride (); if (stride != 0) { struct gdbarch *arch = get_type_arch (elt_type); -- cgit v1.1