binutils-gdb/gdb/nat
Alan Hayward 48574d91bf 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, then write back the registers.

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

Remove all the checks that error if the vector length has changed.

gdb/ChangeLog:

	* aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
	* nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New function.
	(aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
	(aarch64_sve_regs_copy_from_reg_buf): Likewise.
	* nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New declaration.
2019-04-15 15:12:44 +01:00
..
aarch64-linux-hw-point.c Change iterate_over_lwps to take a gdb::function_view 2019-03-12 10:45:35 -06:00
aarch64-linux-hw-point.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
aarch64-linux.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
aarch64-linux.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
aarch64-sve-linux-ptrace.c AArch64 SVE: Support changing vector lengths for ptrace 2019-04-15 15:12:44 +01:00
aarch64-sve-linux-ptrace.h AArch64 SVE: Support changing vector lengths for ptrace 2019-04-15 15:12:44 +01:00
aarch64-sve-linux-sigcontext.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
amd64-linux-siginfo.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
amd64-linux-siginfo.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
fork-inferior.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
fork-inferior.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_ptrace.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_thread_db.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
glibc_thread_db.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-btrace.c Add ATTRIBUTE_UNUSED_RESULT to scoped_mmap 2019-03-05 08:48:40 -07:00
linux-btrace.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-namespaces.c Remove last cleanup from linux-namespaces.c 2019-03-06 16:04:31 -07:00
linux-namespaces.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-nat.h Change iterate_over_lwps to take a gdb::function_view 2019-03-12 10:45:35 -06:00
linux-osdata.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
linux-osdata.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-personality.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
linux-personality.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
linux-procfs.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
linux-procfs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-ptrace.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
linux-ptrace.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-waitpid.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
linux-waitpid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
mips-linux-watch.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
mips-linux-watch.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
ppc-linux.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
ppc-linux.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-cpuid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-dregs.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
x86-dregs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-gcc-cpuid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-linux-dregs.c Change iterate_over_lwps to take a gdb::function_view 2019-03-12 10:45:35 -06:00
x86-linux-dregs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-linux.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
x86-linux.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00