binutils-gdb/gdb/arch
Pedro Franco de Carvalho 0ec848ad25 [PowerPC] Recognize isa205 in linux core files
Currently the ppc linux core file target doesn't return target
descriptions with the lager FPSCR introduced in isa205.

This patch changes the core file target so that the auxv is read from
the core file to determine the size of FPSCR, so that the appropriate
target description is selected.

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

	* arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
	parameter type to CORE_ADDR.
	* arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
	parameter type in declaration to CORE_ADDR.
	* ppc-linux-tdep.c (ppc_linux_core_read_description): Call
	target_auxv_search to get AT_HWCAP and use the result to get the
	target description.
	* ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
	to CORE_ADDR. Remove the cast of the return value to unsigned
	long. Fix error predicate of target_auxv_search.
	(ppc_linux_nat_target::read_description): Change the type of the
	hwcap variable to CORE_ADDR.

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

	* gdb.arch/powerpc-fpscr-gcore.exp: New file.
2018-05-22 11:52:03 -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] Recognize isa205 in linux core files 2018-05-22 11:52:03 -03:00
ppc-linux-common.h [PowerPC] Recognize isa205 in linux core files 2018-05-22 11:52:03 -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