forked from Imagelibrary/binutils-gdb
gdb: remove TYPE_ARRAY_{LOWER,UPPER}_BOUND_VALUE
Remove the macros, use the various equivalent getters instead. gdb/ChangeLog: * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all callers to use the equivalent accessor methods instead. Change-Id: I7f96d988f872170e7a2f58095832710e62b85cfd
This commit is contained in:
committed by
Simon Marchi
parent
39498edbc8
commit
bb789949e9
@@ -49,7 +49,7 @@ f77_get_lowerbound (struct type *type)
|
||||
if (type->index_type ()->bounds ()->low.kind () == PROP_UNDEFINED)
|
||||
error (_("Lower bound may not be '*' in F77"));
|
||||
|
||||
return TYPE_ARRAY_LOWER_BOUND_VALUE (type);
|
||||
return type->index_type ()->bounds ()->low.const_val ();
|
||||
}
|
||||
|
||||
LONGEST
|
||||
@@ -65,7 +65,7 @@ f77_get_upperbound (struct type *type)
|
||||
return f77_get_lowerbound (type);
|
||||
}
|
||||
|
||||
return TYPE_ARRAY_UPPER_BOUND_VALUE (type);
|
||||
return type->index_type ()->bounds ()->high.const_val ();
|
||||
}
|
||||
|
||||
/* Obtain F77 adjustable array dimensions. */
|
||||
|
||||
Reference in New Issue
Block a user