aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.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/value.c
parent2a50938ab740296a1d6df67feea9401e57e4d90e (diff)
downloadgdb-46680d22de34be5057a1033eb489c1453e70eecc.zip
gdb-46680d22de34be5057a1033eb489c1453e70eecc.tar.gz
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/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 4e66329..7d939ab 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -4011,7 +4011,7 @@ value_fetch_lazy_register (struct value *val)
else
{
int i;
- const gdb_byte *buf = value_contents (new_val).data ();
+ gdb::array_view<const gdb_byte> buf = value_contents (new_val);
if (VALUE_LVAL (new_val) == lval_register)
fprintf_unfiltered (&debug_file, " register=%d",