aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-10-25 23:50:22 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-12-03 16:42:02 -0500
commit46680d22de34be5057a1033eb489c1453e70eecc (patch)
treedb791e2bf4f581d656b2353f971c367be16263be /gdb/valarith.c
parent2a50938ab740296a1d6df67feea9401e57e4d90e (diff)
downloadfsf-binutils-gdb-46680d22de34be5057a1033eb489c1453e70eecc.zip
fsf-binutils-gdb-46680d22de34be5057a1033eb489c1453e70eecc.tar.gz
fsf-binutils-gdb-46680d22de34be5057a1033eb489c1453e70eecc.tar.bz2
gdb: trivial changes to use array_view
Change a few relatively obvious spots using value contents to propagate the use array_view a bit more. Change-Id: I5338a60986f06d5969fec803d04f8423c9288a15
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 32898f9..5ce9313 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -933,12 +933,10 @@ fixed_point_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
type2 = type1;
}
- v1.read_fixed_point (gdb::make_array_view (value_contents (arg1).data (),
- TYPE_LENGTH (type1)),
+ v1.read_fixed_point (value_contents (arg1),
type_byte_order (type1), type1->is_unsigned (),
type1->fixed_point_scaling_factor ());
- v2.read_fixed_point (gdb::make_array_view (value_contents (arg2).data (),
- TYPE_LENGTH (type2)),
+ v2.read_fixed_point (value_contents (arg2),
type_byte_order (type2), type2->is_unsigned (),
type2->fixed_point_scaling_factor ());
}
@@ -948,8 +946,7 @@ fixed_point_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
value *fp_val = allocate_value (type1);
fp.write_fixed_point
- (gdb::make_array_view (value_contents_raw (fp_val).data (),
- TYPE_LENGTH (type1)),
+ (value_contents_raw (fp_val),
type_byte_order (type1),
type1->is_unsigned (),
type1->fixed_point_scaling_factor ());