]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Aarch64 SVE: Support changing vector lengths for ptrace
authorAlan Hayward <alan.hayward@arm.com>
Thu, 13 Sep 2018 15:44:10 +0000 (16:44 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Thu, 13 Sep 2018 15:44:10 +0000 (16:44 +0100)
commit9eae688f9a4d99a1a1d4414a2260a08df2f9e0e8
treee04efe7f5f2633b0ccb75a74bcb390f76d7168e2
parent508d0c9b5945d30bcf163b9b88213d277949e9a8
Aarch64 SVE: Support changing vector lengths for ptrace

When writing registers to the kernel, check if regcache VG has been changed. If
so then update the thread's vector length. If required, resize the registers
in the kernel dump before writing it back.

When reading registers from the kernel, ensure regcache VG register is updated.
The regcache registers should already be of the correct length.

2018-09-13  Alan Hayward  <alan.hayward@arm.com>

gdb/
* aarch64-linux-nat.c (fetch_sveregs_from_thread): Pass regcache.
(store_sveregs_to_thread): Likewise.
* nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): Check
vector length.
(aarch64_sve_regs_copy_to_reg_buf): Likewise.
(aarch64_sve_regs_copy_from_reg_buf): Likewise.
* nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): Add
reg_buf arg.
gdb/aarch64-linux-nat.c
gdb/nat/aarch64-sve-linux-ptrace.c
gdb/nat/aarch64-sve-linux-ptrace.h