diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/valarith.c | 2 | ||||
-rw-r--r-- | gdb/value.h | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 90af6d3..33cff4e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * valarith.c (value_subscripted_rvalue): Change lowerbound + parameter type from int to LONGEST. + * value.h (value_subscripted_rvalue): Likewise in declaration. + 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com> * cli/cli-utils.c (info_print_command_completer): New function. 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)); diff --git a/gdb/value.h b/gdb/value.h index 9f55408..47bf672 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1152,7 +1152,8 @@ extern struct value *find_function_in_inferior (const char *, extern struct value *value_allocate_space_in_inferior (int); extern struct value *value_subscripted_rvalue (struct value *array, - LONGEST index, int lowerbound); + LONGEST index, + LONGEST lowerbound); /* User function handler. */ |