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
This commit is contained in:
Simon Marchi
2021-10-25 23:50:22 -04:00
parent 2a50938ab7
commit 46680d22de
5 changed files with 19 additions and 32 deletions

View File

@ -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",