This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2, V2] Detect 64-bit-ness in PowerPC Book III-E
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Sun, 11 Jan 2015 16:27:24 +0800
- Subject: [PATCH 0/2, V2] Detect 64-bit-ness in PowerPC Book III-E
- Authentication-results: sourceware.org; auth=none
- References: <201412191549 dot sBJFnfPW030448 at d03av02 dot boulder dot ibm dot com>
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