old-cross-binutils/gdb/config
Yao Qi cdf436294f Detect 64-bit-ness in PowerPC Book III-E
This patch is to teach both GDB and GDBServer to detect 64-bit inferior
correctly.  We find a problem that GDBServer is unable to detect on a
e5500 core processor.  Current GDBServer assumes that MSR is a 64-bit
register, but MSR is a 32-bit register in Book III-E.  This patch is
to fix this problem by checking the right bit in MSR, in order to handle
both Book III-S and Book III-E.  In order to detect Book III-S and
Book III-E, we check the PPC_FEATURE_BOOKE from the host's HWCAP (by
getauxval on glibc >= 2.16.  If getauxval doesn't exist, we implement
the fallback by parsing /proc/self/auxv), because it should an invariant
on the same machine cross different processes.

In order to share code, I add nat/ppc-linux.c for both GDB and
GDBserver side.

gdb:

2015-01-14  Yao Qi  <yao@codesourcery.com>

	* Makefile.in (ppc-linux.o): New rule.
	* config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
	* configure.ac: AC_CHECK_FUNCS(getauxval).
	* config.in: Re-generated.
	* configure: Re-generated.
	* nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
	Declare.
	* nat/ppc-linux.c: New file.
	* ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
	Call ppc64_64bit_inferior_p.

gdb/gdbserver:

2015-01-14  Yao Qi  <yao@codesourcery.com>

	* Makefile.in (SFILES): Add nat/ppc-linux.c.
	(ppc-linux.o): New rule.
	* configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
	* configure.ac: AC_CHECK_FUNCS(getauxval).
	* config.in: Re-generated.
	* configure: Re-generated.
	* linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
	ppc64_64bit_inferior_p
2015-01-14 22:28:27 +08:00
..
aarch64 Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
alpha Delete Tru64 support 2014-10-17 11:18:59 +01:00
arm Remove a.out NetBSD and OpenBSD hosts 2013-09-24 13:48:44 +00:00
djgpp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386 Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ia64 Remove (dead-code) native core file sniffers on Linux targets 2014-11-28 15:53:05 +01:00
m32r Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
m68k Remove solib-sunos.c 2013-09-24 13:51:55 +00:00
m88k * config/alpha/alpha-linux.mt: Remove file. 2007-11-17 00:54:18 +00:00
mips Delete IRIX support 2014-10-10 18:18:52 +01:00
pa Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
powerpc Detect 64-bit-ness in PowerPC Book III-E 2015-01-14 22:28:27 +08:00
s390 S/390: Rename source files to *-linux-* 2013-10-30 18:57:08 +01:00
sh * config/alpha/alpha-linux.mt: Remove file. 2007-11-17 00:54:18 +00:00
sparc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tilegx Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
vax Remove Vax Ultrix and VAX BSD support 2014-10-24 17:56:56 +01:00
xtensa Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
nm-linux.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
nm-nto.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00