[PATCH 0/2, V2] Detect 64-bit-ness in PowerPC Book III-E

Yao Qi
2015-01-11T08:27:33Z

This patch is the V2 of https://sourceware.org/ml/gdb-patches/2014-12/msg00239.html
In V2, we check the different bit of register MSR on Book III-E and
Book III-S. In order to differentiate Book III-E and Book III-S, we
check the PPC_FEATURE_BOOKE from host's HWCAP, as Ulrich suggested.
Patch 1 is to move common macros into nat/ppc-linux.h, and patch 2
is the major part of this series.

Regression tested on powerpc-linux with GDBserver. Native powerpc
gdb isn't tested. Is it OK?

*** BLURB HERE ***

Yao Qi (2):
Move some ppc macros to nat/ppc-linux.h
Detect 64-bit-ness in PowerPC Book III-E

gdb/Makefile.in | 6 ++-
gdb/config/powerpc/ppc64-linux.mh | 2 +-
gdb/gdbserver/Makefile.in | 5 ++-
gdb/gdbserver/configure.srv | 2 +-
gdb/gdbserver/linux-ppc-low.c | 34 +--------------
gdb/nat/ppc-linux.c | 69 ++++++++++++++++++++++++++++++
gdb/nat/ppc-linux.h | 88 +++++++++++++++++++++++++++++++++++++++
gdb/ppc-linux-nat.c | 54 +-----------------------
8 files changed, 172 insertions(+), 88 deletions(-)
create mode 100644 gdb/nat/ppc-linux.c
create mode 100644 gdb/nat/ppc-linux.h

--
1.9.3