From eafdda3d8d3b7bbd1dd9e4304a3d3b6571d0cf48 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Tue, 2 Jul 1996 19:09:59 +0000 Subject: [PATCH] Add stub support for Linux on PowerPC --- gdb/ChangeLog | 9 +++++++++ gdb/config/powerpc/xm-linux.h | 21 +++++++++++++++++++++ gdb/configure | 9 ++++++--- gdb/configure.in | 7 +++++-- 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 gdb/config/powerpc/xm-linux.h diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b708c0dd09..79aeb168d1b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +Tue Jul 2 15:04:20 1996 Michael Meissner + + * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on + PowerPC. + + * configure.in (powerpc-*-linux): Add Linux, System V, and ELF + support. + * configure: Regenerate. + Mon Jul 1 13:00:43 1996 Stan Shebs From Raymond Jou : diff --git a/gdb/config/powerpc/xm-linux.h b/gdb/config/powerpc/xm-linux.h new file mode 100644 index 00000000000..41c8ba71dc5 --- /dev/null +++ b/gdb/config/powerpc/xm-linux.h @@ -0,0 +1,21 @@ +/* Host definitions for a Sun 4, for GDB, the GNU debugger. + Copyright 1996 + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#define HOST_BYTE_ORDER BIG_ENDIAN diff --git a/gdb/configure b/gdb/configure index 910e3d74b04..83a0d6aec3d 100755 --- a/gdb/configure +++ b/gdb/configure @@ -3296,6 +3296,7 @@ ns32k-utek-sysv*) gdb_host=merlin ;; powerpc-*-aix*) gdb_host=aix ;; powerpcle-*-cygwin32) gdb_host=cygwin32 ;; powerpcle-*-solaris*) gdb_host=solaris ;; +powerpc-*-linux*) gdb_host=linux ;; pn-*-*) gdb_host=pn ;; pyramid-*-*) gdb_host=pyramid ;; @@ -3507,12 +3508,14 @@ powerpc-*-aix4*) gdb_target=aix4 ;; powerpc-*-aix*) gdb_target=aix ;; powerpcle-*-cygwin32) gdb_target=cygwin32 ;; powerpcle-*-solaris*) gdb_target=solaris ;; -powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then +powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv* | powerpc-*-elf*) + if test x"$powerpc_sim" = x"yes"; then gdb_target=ppc-sim else gdb_target=ppc-eabi fi ;; -powerpcle-*-eabi*) if test x"$powerpc_sim" = x"yes"; then +powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*) + if test x"$powerpc_sim" = x"yes"; then gdb_target=ppcle-sim else gdb_target=ppcle-eabi @@ -3535,7 +3538,7 @@ sparc-*-sunos4*) gdb_target=sun4os4 ;; sparc-*-sunos5*) gdb_target=sun4sol2 ;; sparc-*-vxworks*) gdb_target=vxsparc ;; sparc-*-*) gdb_target=sun4os4 ;; -sparclet-*-*) gdb_target=sparclet ;; +sparclet-*-*) gdb_target=sparclet;; sparclite*-*-*) gdb_target=sparclite ;; # It's not clear what the right solution for "v8plus" systems is yet. # For now, stick with sparc-sun-solaris2 since that's what config.guess diff --git a/gdb/configure.in b/gdb/configure.in index 44439ab868a..620700ac2a3 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -405,6 +405,7 @@ ns32k-utek-sysv*) gdb_host=merlin ;; powerpc-*-aix*) gdb_host=aix ;; powerpcle-*-cygwin32) gdb_host=cygwin32 ;; powerpcle-*-solaris*) gdb_host=solaris ;; +powerpc-*-linux*) gdb_host=linux ;; pn-*-*) gdb_host=pn ;; pyramid-*-*) gdb_host=pyramid ;; @@ -616,12 +617,14 @@ powerpc-*-aix4*) gdb_target=aix4 ;; powerpc-*-aix*) gdb_target=aix ;; powerpcle-*-cygwin32) gdb_target=cygwin32 ;; powerpcle-*-solaris*) gdb_target=solaris ;; -powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then +powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv* | powerpc-*-elf*) + if test x"$powerpc_sim" = x"yes"; then gdb_target=ppc-sim else gdb_target=ppc-eabi fi ;; -powerpcle-*-eabi*) if test x"$powerpc_sim" = x"yes"; then +powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*) + if test x"$powerpc_sim" = x"yes"; then gdb_target=ppcle-sim else gdb_target=ppcle-eabi -- 2.30.2