aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.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/frame.c
parent2a50938ab740296a1d6df67feea9401e57e4d90e (diff)
downloadbinutils-46680d22de34be5057a1033eb489c1453e70eecc.zip
binutils-46680d22de34be5057a1033eb489c1453e70eecc.tar.gz
binutils-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/frame.c')
-rw-r--r--gdb/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 7944d1e..896d80d 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1261,7 +1261,7 @@ frame_unwind_register_value (frame_info *next_frame, int regnum)
else
{
int i;
- const gdb_byte *buf = value_contents (value).data ();
+ gdb::array_view<const gdb_byte> buf = value_contents (value);
fprintf_unfiltered (&debug_file, " bytes=");
fprintf_unfiltered (&debug_file, "[");