Ptrace support for AArch64 SVE gdbserver
authorAlan Hayward <alan.hayward@arm.com>
Fri, 15 Jun 2018 11:23:23 +0000 (12:23 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Mon, 18 Jun 2018 09:10:00 +0000 (10:10 +0100)
commit02895270ec7243f46ea3e84dc385515533dc0139
treed09192b4503a4bff1fb5ae8a6833765d6eac4c4c
parente9902bfc28b80190c76ffe5fad3bb73fd4a2ba28
Ptrace support for AArch64 SVE gdbserver

Add checks to detect SVE tdesc. Easiest way to do this is by checking the
size of the vector registers.

Use the common aarch64 ptrace copy functions for reading/writing registers.
A wrapper is required due to the common functions using reg_buffer_common.

gdbserver/
* linux-aarch64-low.c (is_sve_tdesc): New function.
(aarch64_sve_regs_copy_to_regcache): Likewise.
(aarch64_sve_regs_copy_from_regcache):  Likewise.
(aarch64_regs_info): Add SVE checks.
(initialize_low_arch): Initialize SVE.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c