Detect SVE when reading aarch64 core files
authorAlan Hayward <alan.hayward@arm.com>
Mon, 13 Aug 2018 09:49:51 +0000 (10:49 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Mon, 13 Aug 2018 09:51:45 +0000 (10:51 +0100)
commitb7fd65b9dc0a9f132fba362493ec21dadc2994d7
treed706004cac61b76773e59faff9f4a7207f22927a
parenta616bb94509c22c96ae8bf1432ec28a7f3e31778
Detect SVE when reading aarch64 core files

The SVE section in a core file contains a header followed by the registers.
Add defines to easily access the header fields within a buffer.

gdb/
* aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
(SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
(SVE_HEADER_VL_LENGTH): Likewise.
(SVE_HEADER_MAX_VL_LENGTH): Likewise.
(SVE_HEADER_FLAGS_LENGTH): Likewise.
(SVE_HEADER_RESERVED_LENGTH): Likewise.
(SVE_HEADER_SIZE_OFFSET): Likewise.
(SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
(SVE_HEADER_VL_OFFSET): Likewise.
(SVE_HEADER_MAX_VL_OFFSET): Likewise.
(SVE_HEADER_FLAGS_OFFSET): Likewise.
(SVE_HEADER_RESERVED_OFFSET): Likewise.
(SVE_HEADER_SIZE): Likewise.
(aarch64_linux_core_read_vq): Add function.
(aarch64_linux_core_read_description): Check for SVE section.
gdb/ChangeLog
gdb/aarch64-linux-tdep.c