diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-08-25 16:05:32 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-08-25 16:05:32 +0000 |
commit | 13ba8b69271683f5cc4c723a6dbd1070b9aa671f (patch) | |
tree | 088a7d9a9502a55eadd80e4bd3315fd0566d0922 | |
parent | 69cc18d2f050933ef15a2bc601be6cdfa2f8f0f4 (diff) | |
download | gdb-13ba8b69271683f5cc4c723a6dbd1070b9aa671f.zip gdb-13ba8b69271683f5cc4c723a6dbd1070b9aa671f.tar.gz gdb-13ba8b69271683f5cc4c723a6dbd1070b9aa671f.tar.bz2 |
Only build PowerPC simulator if target is powerpc*-*-eabisim
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/config/powerpc/.Sanitize | 4 | ||||
-rw-r--r-- | gdb/config/powerpc/ppcle-eabi.mt | 3 | ||||
-rw-r--r-- | gdb/config/powerpc/ppcle-sim.mt | 6 | ||||
-rw-r--r-- | gdb/config/powerpc/tm-ppc-sim.h | 26 | ||||
-rw-r--r-- | gdb/config/powerpc/tm-ppcle-sim.h | 26 | ||||
-rwxr-xr-x | gdb/configure | 62 | ||||
-rw-r--r-- | gdb/configure.in | 2 | ||||
-rw-r--r-- | sim/configure.in | 4 |
9 files changed, 104 insertions, 38 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 595d7ba..05889c0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +Fri Aug 25 11:31:29 1995 Michael Meissner <meissner@tiktok.cygnus.com> + + * configure.in (powerpc*-*-eabisim*): Only link in the simulator + if the target is powerpc{,le}-*-eabisim*, since the simulator + needs GCC to build. + * config/powerpc/ppc{,le}-sim.mt: Cloned from ppc{,le}-eabi.mt. + * config/powerpc/ppc{,le}-eabi.mt: Remove simulator support. + * config/powerpc/tm-ppc{,le}-sim.mt: Include tm-ppc{,le}-sim.h. + Wed Aug 23 16:55:35 1995 Michael Meissner <meissner@tiktok.cygnus.com> * config/powerpc/ppc{,le}-eabi.mt (SIM_OBJS, SIM): Link in the diff --git a/gdb/config/powerpc/.Sanitize b/gdb/config/powerpc/.Sanitize index b38d3da..3bfa82d 100644 --- a/gdb/config/powerpc/.Sanitize +++ b/gdb/config/powerpc/.Sanitize @@ -29,12 +29,16 @@ gdbserve.mt nm-aix.h ppc-eabi.mt ppc-nw.mt +ppc-sim.mt ppcle-eabi.mt +ppcle-sim.mt tm-ppc-aix.h tm-ppc-aix4.h tm-ppc-eabi.h tm-ppc-nw.h +tm-ppc-sim.h tm-ppcle-eabi.h +tm-ppcle-sim.h xm-aix.h Things-to-lose: diff --git a/gdb/config/powerpc/ppcle-eabi.mt b/gdb/config/powerpc/ppcle-eabi.mt index ba17795..27be44f 100644 --- a/gdb/config/powerpc/ppcle-eabi.mt +++ b/gdb/config/powerpc/ppcle-eabi.mt @@ -1,6 +1,3 @@ # Target: PowerPC running eabi in little endian mode TDEPFILES= rs6000-tdep.o TM_FILE= tm-ppcle-eabi.h - -SIM_OBS = remote-sim.o -SIM = ../sim/ppc/libsim.a diff --git a/gdb/config/powerpc/ppcle-sim.mt b/gdb/config/powerpc/ppcle-sim.mt new file mode 100644 index 0000000..8aefc1a --- /dev/null +++ b/gdb/config/powerpc/ppcle-sim.mt @@ -0,0 +1,6 @@ +# Target: PowerPC running eabi in little endian mode under the simulator +TDEPFILES= rs6000-tdep.o +TM_FILE= tm-ppcle-eabi.h + +SIM_OBS = remote-sim.o +SIM = ../sim/ppc/libsim.a diff --git a/gdb/config/powerpc/tm-ppc-sim.h b/gdb/config/powerpc/tm-ppc-sim.h new file mode 100644 index 0000000..e4116bc --- /dev/null +++ b/gdb/config/powerpc/tm-ppc-sim.h @@ -0,0 +1,26 @@ +/* Macro definitions for Power PC running embedded ABI under the simulator. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef TM_PPC_SIM_H +#define TM_PPC_SIM_H + +#include "powerpc/tm-ppc-eabi.h" + +#endif /* TM_PPC_SIM_H */ + diff --git a/gdb/config/powerpc/tm-ppcle-sim.h b/gdb/config/powerpc/tm-ppcle-sim.h new file mode 100644 index 0000000..76564f2 --- /dev/null +++ b/gdb/config/powerpc/tm-ppcle-sim.h @@ -0,0 +1,26 @@ +/* Macro definitions for Power PC running embedded ABI under the simulator. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef TM_PPCLE_SIM_H +#define TM_PPCLE_SIM_H + +#include "powerpc/tm-ppcle-eabi.h" + +#endif /* TM_PPCLE_SIM_H */ + diff --git a/gdb/configure b/gdb/configure index 65b76b3..c8721d3 100755 --- a/gdb/configure +++ b/gdb/configure @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.4 +# Generated automatically using autoconf version 2.3 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -222,7 +222,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.4" + echo "configure generated by autoconf version 2.3" exit 0 ;; -with-* | --with-*) @@ -527,15 +527,13 @@ fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" fi +CPP="$ac_cv_prog_CPP" echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for AIX""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 539 "configure" +#line 537 "configure" #include "confdefs.h" #ifdef _AIX yes @@ -562,7 +560,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 566 "configure" +#line 564 "configure" #include "confdefs.h" #include <minix/config.h> EOF @@ -624,7 +622,6 @@ fi ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - ac_dir=`cd $ac_dir; pwd` if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -725,7 +722,6 @@ fi ac_aux_dir= for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do - ac_dir=`cd $ac_dir; pwd` if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -856,7 +852,7 @@ else ac_cv_c_cross=yes else cat > conftest.$ac_ext <<EOF -#line 860 "configure" +#line 856 "configure" #include "confdefs.h" main(){return(0);} EOF @@ -877,7 +873,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 881 "configure" +#line 877 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -899,7 +895,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 903 "configure" +#line 899 "configure" #include "confdefs.h" #include <string.h> EOF @@ -917,7 +913,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 921 "configure" +#line 917 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -938,7 +934,7 @@ if test "$cross_compiling" = yes; then ac_cv_header_stdc=no else cat > conftest.$ac_ext <<EOF -#line 942 "configure" +#line 938 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -975,7 +971,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 979 "configure" +#line 975 "configure" #include "confdefs.h" #include <$ac_hdr> EOF @@ -1008,7 +1004,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1012 "configure" +#line 1008 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/stat.h> @@ -1066,7 +1062,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <<EOF -#line 1070 "configure" +#line 1066 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. */ @@ -1229,12 +1225,10 @@ EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `make acfindx 2>/dev/null | grep -v make` # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. - for ac_extension in a so sl; do - if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && - test -f $ac_im_libdir/libX11.$ac_extension; then - ac_im_usrlibdir=$ac_im_libdir; break - fi - done + if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a + then + ac_im_usrlibdir=$ac_im_libdir + fi # Screen out bogus values from the imake configuration. case "$ac_im_incroot" in /usr/include) ;; @@ -1254,7 +1248,7 @@ test -z "$x_direct_test_library" && x_direct_test_library=Xt test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h cat > conftest.$ac_ext <<EOF -#line 1258 "configure" +#line 1252 "configure" #include "confdefs.h" #include <$x_direct_test_include> EOF @@ -1317,7 +1311,7 @@ rm -f conftest* ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <<EOF -#line 1321 "configure" +#line 1315 "configure" #include "confdefs.h" int main() { return 0; } @@ -1435,7 +1429,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lICE $LIBS" cat > conftest.$ac_ext <<EOF -#line 1439 "configure" +#line 1433 "configure" #include "confdefs.h" int main() { return 0; } @@ -1478,7 +1472,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <<EOF -#line 1482 "configure" +#line 1476 "configure" #include "confdefs.h" int main() { return 0; } @@ -1512,7 +1506,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <<EOF -#line 1516 "configure" +#line 1510 "configure" #include "confdefs.h" int main() { return 0; } @@ -1551,7 +1545,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <<EOF -#line 1555 "configure" +#line 1549 "configure" #include "confdefs.h" int main() { return 0; } @@ -1589,7 +1583,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <<EOF -#line 1593 "configure" +#line 1587 "configure" #include "confdefs.h" int main() { return 0; } @@ -1646,7 +1640,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1650 "configure" +#line 1644 "configure" #include "confdefs.h" #include <tk.h> EOF @@ -1748,7 +1742,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1752 "configure" +#line 1746 "configure" #include "confdefs.h" #include <tclInt.h> EOF @@ -2141,7 +2135,9 @@ powerpc-*-netware*) gdb_target=ppc-nw powerpc-*-aix4*) gdb_target=aix4 ;; powerpc-*-aix*) gdb_target=aix ;; +powerpc-*-eabisim*) gdb_target=ppc-sim ;; powerpc-*-eabi*) gdb_target=ppc-eabi ;; +powerpcle-*-eabisim*) gdb_target=ppcle-sim ;; powerpcle-*-eabi*) gdb_target=ppcle-eabi ;; pyramid-*-*) gdb_target=pyramid ;; @@ -2341,7 +2337,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.4" + echo "$CONFIG_STATUS generated by autoconf version 2.3" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; diff --git a/gdb/configure.in b/gdb/configure.in index b740931..6fb7e4a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -381,7 +381,9 @@ powerpc-*-netware*) gdb_target=ppc-nw powerpc-*-aix4*) gdb_target=aix4 ;; powerpc-*-aix*) gdb_target=aix ;; +powerpc-*-eabisim*) gdb_target=ppc-sim ;; powerpc-*-eabi*) gdb_target=ppc-eabi ;; +powerpcle-*-eabisim*) gdb_target=ppcle-sim ;; powerpcle-*-eabi*) gdb_target=ppcle-eabi ;; pyramid-*-*) gdb_target=pyramid ;; diff --git a/sim/configure.in b/sim/configure.in index 36d6a78..90a3c8c 100644 --- a/sim/configure.in +++ b/sim/configure.in @@ -16,8 +16,8 @@ case "${target}" in h8300*-*-*) sim_target=h8300 ;; h8500-*-*) sim_target=h8500 ;; sh*-*-*) sim_target=sh ;; - powerpc-*-*) sim_target=ppc ;; - powerpcle-*-*) sim_target=ppc ;; + powerpc-*-eabisim*) sim_target=ppc ;; + powerpcle-*-eabisim*) sim_target=ppc ;; w65-*-*) sim_target=w65 ;; z8k*-*-*) sim_target=z8k ;; *) sim_target=none ;; |