From c7b44b0425dc1a4ee75abee5897de77a2b86648d Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Tue, 9 May 1995 21:07:06 +0000 Subject: Add little endian PowerPC support. --- gdb/ChangeLog | 7 +++++++ gdb/config/powerpc/.Sanitize | 2 ++ gdb/config/powerpc/ppcle-eabi.mt | 3 +++ gdb/config/powerpc/tm-ppcle-eabi.h | 30 ++++++++++++++++++++++++++++++ gdb/configure.in | 5 +++++ 5 files changed, 47 insertions(+) create mode 100644 gdb/config/powerpc/ppcle-eabi.mt create mode 100644 gdb/config/powerpc/tm-ppcle-eabi.h (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6e86b8..d4a5cf8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Tue May 9 16:58:50 1995 Michael Meissner + + * configure.in: Add little endian PowerPC support. + * config/powerpc/ppcle-eabi.mt: New file for little endian PowerPC + support. + * config/powerpc/tm-ppcle-eabi.h: ditto. + Mon May 8 12:11:38 1995 J.T. Conklin * nlm/configure.in (gdb_host, gdb_host_cpu, gdb_target): Removed. diff --git a/gdb/config/powerpc/.Sanitize b/gdb/config/powerpc/.Sanitize index cec908a..d4c3b81 100644 --- a/gdb/config/powerpc/.Sanitize +++ b/gdb/config/powerpc/.Sanitize @@ -25,7 +25,9 @@ gdbserve.mt ppc-nw.mt tm-ppc-nw.h tm-ppc-eabi.h +tm-ppcle-eabi.h ppc-eabi.mt +ppcle-eabi.mt Things-to-lose: diff --git a/gdb/config/powerpc/ppcle-eabi.mt b/gdb/config/powerpc/ppcle-eabi.mt new file mode 100644 index 0000000..27be44f --- /dev/null +++ b/gdb/config/powerpc/ppcle-eabi.mt @@ -0,0 +1,3 @@ +# Target: PowerPC running eabi in little endian mode +TDEPFILES= rs6000-tdep.o +TM_FILE= tm-ppcle-eabi.h diff --git a/gdb/config/powerpc/tm-ppcle-eabi.h b/gdb/config/powerpc/tm-ppcle-eabi.h new file mode 100644 index 0000000..0ad4bdc --- /dev/null +++ b/gdb/config/powerpc/tm-ppcle-eabi.h @@ -0,0 +1,30 @@ +/* Macro definitions for Power PC running embedded ABI + in little endian mode. + Copyright 1995 Free Software Foundation, Inc. + +This file is part of GDB. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#ifndef TM_PPCLE_EABI_H +#define TM_PPCLE_EABI_H + +/* Use normal ppc-eabi definitions */ +#include "powerpc/tm-ppc-eabi.h" + +#undef TARGET_BYTE_ORDER +#define TARGET_BYTE_ORDER LITTLE_ENDIAN + +#endif /* TM_PPCLE_EABI_H */ diff --git a/gdb/configure.in b/gdb/configure.in index cf76597..7d50351 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -22,6 +22,7 @@ m68*) gdb_host_cpu=m68k ;; m88*) gdb_host_cpu=m88k ;; np1) gdb_host_cpu=gould ;; pyramid) gdb_host_cpu=pyr ;; +powerpc*) gdb_host_cpu=powerpc ;; *) gdb_host_cpu=$host_cpu ;; esac @@ -167,6 +168,7 @@ m68*) gdb_target_cpu=m68k ;; m88*) gdb_target_cpu=m88k ;; mips*) gdb_target_cpu=mips ;; np1) gdb_target_cpu=gould ;; +powerpc*) gdb_target_cpu=powerpc ;; pn) gdb_target_cpu=gould ;; pyramid) gdb_target_cpu=pyr ;; sparclite*) gdb_target_cpu=sparc @@ -325,6 +327,9 @@ powerpc-*-netware*) gdb_target=ppc-nw powerpc-*-eabi*) gdb_target=ppc-eabi configdirs="${configdirs}" ;; +powerpcle-*-eabi*) gdb_target=ppcle-eabi + configdirs="${configdirs}" ;; + pyramid-*-*) gdb_target=pyramid ;; rs6000-*-lynxos*) gdb_target=rs6000lynx ;; -- cgit v1.1