binutils-gdb/gdb/arch
Pedro Franco de Carvalho d078308a2e [PowerPC] Consolidate linux vector regset sizes
This patch defines constants for the sizes of the two vector
regsets (vector-scalar registers and regular vector registers).

The native, gdbserver and core file targets are changed to use these
constants.

The Linux ptrace calls return (or read) a smaller regset than the one
found in core files for vector registers, because ptrace uses a single
4-byte quantity for vrsave at the end of the regset, while the
core-file regset uses a full 16-byte field for vrsave. For simplicity,
the larger size is used in both cases, and so a buffer with 12 unused
additional bytes is passed to ptrace in the native target.

gdb/ChangeLog:
2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>

	* arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
	(PPC_LINUX_SIZEOF_VSXREGSET): Define.
	* ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
	(gdb_vrregset_t): Change array type size to
	PPC_LINUX_SIZEOF_VRREGSET.
	(gdb_vsxregset_t): Change array type size to
	PPC_LINUX_SIZEOF_VSXREGSET.
	* ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
	Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
	PPC_LINUX_SIZEOF_VSXREGSET.

gdb/gdbserver/ChangeLog:
2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>

	* linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
	(ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
	PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2018-05-22 11:52:02 -03:00
..
aarch64-insn.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
aarch64-insn.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
aarch64.c Add "common-defs.h" include to files in arch/ subdir not yet including it. 2018-02-21 11:03:41 -08:00
aarch64.h Explicitly specify common tdesc.h for use with aarch64.h 2018-02-27 16:30:40 +00:00
amd64.c Add "common-defs.h" include to files in arch/ subdir not yet including it. 2018-02-21 11:03:41 -08:00
amd64.h Move arch/tdesc.h to common/tdesc.h 2018-02-26 11:46:57 +00:00
arm-get-next-pcs.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
arm-get-next-pcs.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
arm-linux.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
arm-linux.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
arm.c Fix "fall through" comments 2018-05-04 22:04:46 -06:00
arm.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
i386.c Move arch/tdesc.h to common/tdesc.h 2018-02-26 11:46:57 +00:00
i386.h Move arch/tdesc.h to common/tdesc.h 2018-02-26 11:46:57 +00:00
ppc-linux-common.c [PowerPC] Consolidate linux target description selection 2018-05-22 11:52:02 -03:00
ppc-linux-common.h [PowerPC] Consolidate linux vector regset sizes 2018-05-22 11:52:02 -03:00
ppc-linux-tdesc.h [PowerPC] Consolidate linux target description selection 2018-05-22 11:52:02 -03:00
tic6x.c Move arch/tdesc.h to common/tdesc.h 2018-02-26 11:46:57 +00:00
tic6x.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
xtensa.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00