aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-linux-tdep.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2020-12-23 16:06:11 -0300
committerLuis Machado <luis.machado@linaro.org>2021-01-19 10:26:52 -0300
commitccbe4c82d5219502806dc62aa1cf51e5b1a4b479 (patch)
tree5e3b6973a19cee71128da07880c85464b702d5ef /gdb/aarch64-linux-tdep.c
parent26503e2f5eae6019c8649a3dd204a82705efc740 (diff)
downloadfsf-binutils-gdb-ccbe4c82d5219502806dc62aa1cf51e5b1a4b479.zip
fsf-binutils-gdb-ccbe4c82d5219502806dc62aa1cf51e5b1a4b479.tar.gz
fsf-binutils-gdb-ccbe4c82d5219502806dc62aa1cf51e5b1a4b479.tar.bz2
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.
Diffstat (limited to 'gdb/aarch64-linux-tdep.c')
-rw-r--r--gdb/aarch64-linux-tdep.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index 4c2caf8..954b05c 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -222,27 +222,27 @@ aarch64_linux_restore_vreg (struct trad_frame_cache *cache, int num_regs,
/* Now we can store the correct bytes for the V register. */
trad_frame_set_reg_value_bytes (cache, AARCH64_V0_REGNUM + vreg_num,
- buf, V_REGISTER_SIZE);
+ {buf, V_REGISTER_SIZE});
trad_frame_set_reg_value_bytes (cache,
num_regs + AARCH64_Q0_REGNUM
- + vreg_num, buf, Q_REGISTER_SIZE);
+ + vreg_num, {buf, Q_REGISTER_SIZE});
trad_frame_set_reg_value_bytes (cache,
num_regs + AARCH64_D0_REGNUM
- + vreg_num, buf, D_REGISTER_SIZE);
+ + vreg_num, {buf, D_REGISTER_SIZE});
trad_frame_set_reg_value_bytes (cache,
num_regs + AARCH64_S0_REGNUM
- + vreg_num, buf, S_REGISTER_SIZE);
+ + vreg_num, {buf, S_REGISTER_SIZE});
trad_frame_set_reg_value_bytes (cache,
num_regs + AARCH64_H0_REGNUM
- + vreg_num, buf, H_REGISTER_SIZE);
+ + vreg_num, {buf, H_REGISTER_SIZE});
trad_frame_set_reg_value_bytes (cache,
num_regs + AARCH64_B0_REGNUM
- + vreg_num, buf, B_REGISTER_SIZE);
+ + vreg_num, {buf, B_REGISTER_SIZE});
if (has_sve)
trad_frame_set_reg_value_bytes (cache,
num_regs + AARCH64_SVE_V0_REGNUM
- + vreg_num, buf, V_REGISTER_SIZE);
+ + vreg_num, {buf, V_REGISTER_SIZE});
}
return;
}