From 0c9c3474029f5250b428274eaf63f7a349c6fc5f Mon Sep 17 00:00:00 2001 From: Sanimir Agovic Date: Thu, 19 Dec 2013 08:31:17 +0000 Subject: refactoring: rename create_range_type to create_static_range_type * gdbtypes.c (create_static_range_type): Renamed from create_range_type. * gdbtypes.h (create_static_range_type): Renamed from create_range_type. * ada-lang.c: All uses of create_range_type updated. * coffread.c: All uses of create_range_type updated. * dwarf2read.c: All uses of create_range_type updated. * f-exp.y: All uses of create_range_type updated. * m2-valprint.c: All uses of create_range_type updated. * mdebugread.c: All uses of create_range_type updated. * stabsread.c: All uses of create_range_type updated. * valops.c: All uses of create_range_type updated. * valprint.c: All uses of create_range_type updated. --- gdb/valops.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index cf195a3..1fa188f 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -413,10 +413,10 @@ value_cast (struct type *type, struct value *arg2) "divide object size in cast")); /* FIXME-type-allocation: need a way to free this type when we are done with it. */ - range_type = create_range_type ((struct type *) NULL, - TYPE_TARGET_TYPE (range_type), - low_bound, - new_length + low_bound - 1); + range_type = create_static_range_type ((struct type *) NULL, + TYPE_TARGET_TYPE (range_type), + low_bound, + new_length + low_bound - 1); deprecated_set_value_type (arg2, create_array_type ((struct type *) NULL, element_type, @@ -3569,10 +3569,10 @@ value_slice (struct value *array, int lowbound, int length) /* FIXME-type-allocation: need a way to free this type when we are done with it. */ - slice_range_type = create_range_type ((struct type *) NULL, - TYPE_TARGET_TYPE (range_type), - lowbound, - lowbound + length - 1); + slice_range_type = create_static_range_type ((struct type *) NULL, + TYPE_TARGET_TYPE (range_type), + lowbound, + lowbound + length - 1); { struct type *element_type = TYPE_TARGET_TYPE (array_type); -- cgit v1.1