aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-04-24 17:50:40 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-07-12 12:09:52 +0100
commit592f9d271caaa22a6b299cfaaf6ce3394796e0e2 (patch)
tree3269bf8b1f629500c784ea70677885a0c416d1cc /gdb/valarith.c
parent830b67068cebe7db0eb0db3fa19244e03859fae0 (diff)
downloadfsf-binutils-gdb-592f9d271caaa22a6b299cfaaf6ce3394796e0e2.zip
fsf-binutils-gdb-592f9d271caaa22a6b299cfaaf6ce3394796e0e2.tar.gz
fsf-binutils-gdb-592f9d271caaa22a6b299cfaaf6ce3394796e0e2.tar.bz2
gdb: Update type of lower bound in value_subscripted_rvalue
The dynamic lower (and upper) bounds of ranges are stored as type LONGEST (see union dynamic_prop_data in gdbtypes.h). In most places that range bounds are handled they are held in a LONGEST, however in value_subscripted_rvalue the bound is placed into an int. This commit changes value_subscripted_rvalue to use LONGEST, there should be no user visible changes after this commit. gdb/ChangeLog: * valarith.c (value_subscripted_rvalue): Change lowerbound parameter type from int to LONGEST. * value.h (value_subscripted_rvalue): Likewise in declaration.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 4ee7f24..8f3c502 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -183,7 +183,7 @@ value_subscript (struct value *array, LONGEST index)
to doubles, but no longer does. */
struct value *
-value_subscripted_rvalue (struct value *array, LONGEST index, int lowerbound)
+value_subscripted_rvalue (struct value *array, LONGEST index, LONGEST lowerbound)
{
struct type *array_type = check_typedef (value_type (array));
struct type *elt_type = check_typedef (TYPE_TARGET_TYPE (array_type));