diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-10-15 15:14:58 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2021-12-03 11:00:37 +0000 |
commit | bf94cfb6318572bc3eece37273140d45279a8768 (patch) | |
tree | 48acb8541d0e50644aa93da289b34cc512c2b256 /gdb/valarith.c | |
parent | cc7ea7504c49baae6853c4f6b926271a2029c73d (diff) | |
download | gdb-bf94cfb6318572bc3eece37273140d45279a8768.zip gdb-bf94cfb6318572bc3eece37273140d45279a8768.tar.gz gdb-bf94cfb6318572bc3eece37273140d45279a8768.tar.bz2 |
gdb: make value_subscripted_rvalue static
The function value_subscripted_rvalue is only used in valarith.c, so
lets make it a static function.
There should be no user visible change after this commit.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r-- | gdb/valarith.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 140ef44..11acec6 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -29,6 +29,11 @@ #include "gdbsupport/byte-vector.h" #include "gdbarch.h" +/* Forward declarations. */ +static struct value *value_subscripted_rvalue (struct value *array, + LONGEST index, + LONGEST lowerbound); + /* Define whether or not the C operator '/' truncates towards zero for differently signed operands (truncation direction is undefined in C). */ @@ -190,8 +195,9 @@ value_subscript (struct value *array, LONGEST index) (eg, a vector register). This routine used to promote floats to doubles, but no longer does. */ -struct value * -value_subscripted_rvalue (struct value *array, LONGEST index, LONGEST lowerbound) +static struct value * +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)); |