Use gdb::array_view for setting value bytes in trad-frame
authorLuis Machado <luis.machado@linaro.org>
Wed, 23 Dec 2020 19:06:11 +0000 (16:06 -0300)
committerLuis Machado <luis.machado@linaro.org>
Tue, 19 Jan 2021 13:26:52 +0000 (10:26 -0300)
commitccbe4c82d5219502806dc62aa1cf51e5b1a4b479
tree5e3b6973a19cee71128da07880c85464b702d5ef
parent26503e2f5eae6019c8649a3dd204a82705efc740
Use gdb::array_view for setting value bytes in trad-frame

This patch updates the functions setting value bytes in trad-frame to use
a gdb::array_view instead of passing a buffer and a size.

gdb/ChangeLog:

2021-01-19  Luis Machado  <luis.machado@linaro.org>

* aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
array_view.
* trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
instead of buffer and size.
(trad_frame_set_reg_value_bytes): Likewise.
* trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
(trad_frame_set_value_bytes): Likewise.
gdb/ChangeLog
gdb/aarch64-linux-tdep.c
gdb/trad-frame.c
gdb/trad-frame.h