From: Michael Meissner Date: Thu, 9 Nov 1995 22:41:34 +0000 (+0000) Subject: Enable powerpc simulator for all powerpc-eabi targets, not just powerpc-eabisim if... X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=3c0bf315f5578d5ca1da93d55d999304407a490d;p=deliverable%2Fbinutils-gdb.git Enable powerpc simulator for all powerpc-eabi targets, not just powerpc-eabisim if compiling with GCC. Add --enable-sim-powerpc option to control this. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e3ebd80087..3e36f389ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 9 17:34:01 1995 Michael Meissner + + * configure.in (gdb_target): Build in the simulator for all + PowerPC eabi targets, not just eabisim, providing + --enable-sim-powerpc is used, or the host compiler is GCC. + Thu Nov 9 14:04:05 1995 Raymond Jou (rjou@mexican.cygnus.com) * mpw-config.in: Add variable with names of SIOW libraries. diff --git a/gdb/configure b/gdb/configure index 1033a86f02..bab0e24e20 100755 --- a/gdb/configure +++ b/gdb/configure @@ -15,6 +15,8 @@ ac_help="$ac_help --enable-netrom " ac_help="$ac_help --enable-gm " +ac_help="$ac_help + --enable-sim-powerpc " ac_help="$ac_help --enable-gdbtk " ac_help="$ac_help @@ -496,7 +498,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error @@ -510,7 +512,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error @@ -537,7 +539,7 @@ echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for AIX""... $ac_c" 1>&6 cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < EOF @@ -889,7 +891,7 @@ else ac_cv_c_cross=yes else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < #include @@ -932,7 +934,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 @@ -950,7 +952,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 @@ -971,7 +973,7 @@ if test "$cross_compiling" = yes; then ac_cv_header_stdc=no else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1008,7 +1010,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 @@ -1041,7 +1043,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 < #include @@ -1099,7 +1101,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <&2; exit 1; } ;; +esac +else + if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi +fi + + # start-sanitize-gdbtk ENABLE_GDBTK= @@ -1305,7 +1320,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 @@ -1368,7 +1383,7 @@ rm -f conftest* ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 else cat > conftest.$ac_ext < EOF @@ -1799,7 +1814,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 @@ -2256,10 +2271,16 @@ 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 ;; +powerpc-*-eabi*) 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 + gdb_target=ppcle-sim + else + gdb_target=ppcle-eabi + fi ;; pyramid-*-*) gdb_target=pyramid ;; diff --git a/gdb/configure.in b/gdb/configure.in index b1aa080c4e..ac4531d590 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -54,6 +54,14 @@ esac]) # end-sanitize-gm +AC_ARG_ENABLE(sim-powerpc, +[ --enable-sim-powerpc ], +[case "${enableval}" in +yes) powerpc_sim=yes ;; +no) powerpc_sim=no ;; +*) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;; +esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi]) + # start-sanitize-gdbtk ENABLE_GDBTK= @@ -461,10 +469,16 @@ 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 ;; +powerpc-*-eabi*) 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 + gdb_target=ppcle-sim + else + gdb_target=ppcle-eabi + fi ;; pyramid-*-*) gdb_target=pyramid ;;