source: rtems/contrib/crossrpms/patches/gdb-7.0.90-rtems4.10-20100225.diff @ 0d96991

4.104.115
Last change on this file since 0d96991 was 0d96991, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/25/10 at 04:36:17

Revamp gdb_target_obs handling.

  • Property mode set to 100644
File size: 18.5 KB
  • gdb/configure

    diff -Naur gdb-7.0.90.orig/gdb/configure gdb-7.0.90-rtems4.10-20100225/gdb/configure
    old new  
    69276927
    69286928    . ${srcdir}/configure.tgt
    69296929
     6930    if test -z "${gdb_target_obs}"; then :
     6931  as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
     6932fi
     6933
    69306934    # Target-specific object files
    69316935    for i in ${gdb_target_obs}; do
    69326936        case " $TARGET_OBS " in
  • gdb/configure.ac

    diff -Naur gdb-7.0.90.orig/gdb/configure.ac gdb-7.0.90-rtems4.10-20100225/gdb/configure.ac
    old new  
    161161
    162162    . ${srcdir}/configure.tgt
    163163
     164    AS_IF([test -z "${gdb_target_obs}"],
     165      [AC_MSG_ERROR([configuration ${targ} is unsupported.])])
     166
    164167    # Target-specific object files
    165168    for i in ${gdb_target_obs}; do
    166169        case " $TARGET_OBS " in
  • gdb/lm32-tdep.c

    diff -Naur gdb-7.0.90.orig/gdb/lm32-tdep.c gdb-7.0.90-rtems4.10-20100225/gdb/lm32-tdep.c
    old new  
    3535#include "regcache.h"
    3636#include "trad-frame.h"
    3737#include "reggroups.h"
    38 #include "opcodes/lm32-desc.h"
     38#include "../opcodes/lm32-desc.h"
    3939
    4040#include "gdb_string.h"
    4141
  • gdb/sparc-tdep.c

    diff -Naur gdb-7.0.90.orig/gdb/sparc-tdep.c gdb-7.0.90-rtems4.10-20100225/gdb/sparc-tdep.c
    old new  
    11001100sparc32_store_return_value (struct type *type, struct regcache *regcache,
    11011101                            const gdb_byte *valbuf)
    11021102{
    1103   int len = TYPE_LENGTH (type);
     1103  size_t len = TYPE_LENGTH (type);
    11041104  gdb_byte buf[8];
    11051105
    11061106  gdb_assert (!sparc_structure_or_union_p (type));
  • sim/erc32/configure

    diff -Naur gdb-7.0.90.orig/sim/erc32/configure gdb-7.0.90-rtems4.10-20100225/sim/erc32/configure
    old new  
    591591ac_subst_vars='LTLIBOBJS
    592592LIBOBJS
    593593cgen_breaks
     594READLINE_CFLAGS
     595READLINE_DEPS
    594596READLINE
    595 TERMCAP
    596597REPORT_BUGS_TEXI
    597598REPORT_BUGS_TO
    598599PKGVERSION
     
    716717enable_sim_profile
    717718with_pkgversion
    718719with_bugurl
     720with_system_readline
    719721'
    720722      ac_precious_vars='build_alias
    721723host_alias
     
    13581360  --with-zlib             include zlib support (auto/yes/no) default=auto
    13591361  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
    13601362  --with-bugurl=URL       Direct users to URL to report a bug
     1363  --with-system-readline  use installed readline library
    13611364
    13621365Some influential environment variables:
    13631366  CC          C compiler command
     
    24162419
    24172420
    24182421
    2419 
    24202422# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
    24212423# it by inlining the macro's contents.
    24222424# This file contains common code used by all simulators.
     
    29162918int
    29172919main ()
    29182920{
    2919 
     2921return 0;
    29202922  ;
    29212923  return 0;
    29222924}
    29232925_ACEOF
    29242926ac_clean_files_save=$ac_clean_files
    2925 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
     2927ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    29262928# Try to create an executable without -o first, disregard a.out.
    29272929# It will help us diagnose broken compilers, and finding out an intuition
    29282930# of exeext.
    2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    2930 $as_echo_n "checking for C compiler default output file name... " >&6; }
     2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     2932$as_echo_n "checking whether the C compiler works... " >&6; }
    29312933ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    29322934
    29332935# The possible output files:
     
    29892991else
    29902992  ac_file=''
    29912993fi
    2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    2993 $as_echo "$ac_file" >&6; }
    29942994if test -z "$ac_file"; then :
    2995   $as_echo "$as_me: failed program was:" >&5
     2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2996$as_echo "no" >&6; }
     2997$as_echo "$as_me: failed program was:" >&5
    29962998sed 's/^/| /' conftest.$ac_ext >&5
    29972999
    29983000{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     
    30003002{ as_fn_set_status 77
    30013003as_fn_error "C compiler cannot create executables
    30023004See \`config.log' for more details." "$LINENO" 5; }; }
     3005else
     3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3007$as_echo "yes" >&6; }
    30033008fi
     3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     3010$as_echo_n "checking for C compiler default output file name... " >&6; }
     3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     3012$as_echo "$ac_file" >&6; }
    30043013ac_exeext=$ac_cv_exeext
    30053014
    3006 # Check that the compiler produces executables we can run.  If not, either
    3007 # the compiler is broken, or we cross compile.
    3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    3009 $as_echo_n "checking whether the C compiler works... " >&6; }
    3010 # If not cross compiling, check that we can run a simple program.
    3011 if test "$cross_compiling" != yes; then
    3012   if { ac_try='./$ac_file'
    3013   { { case "(($ac_try" in
    3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3015   *) ac_try_echo=$ac_try;;
    3016 esac
    3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3018 $as_echo "$ac_try_echo"; } >&5
    3019   (eval "$ac_try") 2>&5
    3020   ac_status=$?
    3021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3022   test $ac_status = 0; }; }; then
    3023     cross_compiling=no
    3024   else
    3025     if test "$cross_compiling" = maybe; then
    3026         cross_compiling=yes
    3027     else
    3028         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3030 as_fn_error "cannot run C compiled programs.
    3031 If you meant to cross compile, use \`--host'.
    3032 See \`config.log' for more details." "$LINENO" 5; }
    3033     fi
    3034   fi
    3035 fi
    3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    3037 $as_echo "yes" >&6; }
    3038 
    3039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
     3015rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    30403016ac_clean_files=$ac_clean_files_save
    3041 # Check that the compiler produces executables we can run.  If not, either
    3042 # the compiler is broken, or we cross compile.
    3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    3044 $as_echo_n "checking whether we are cross compiling... " >&6; }
    3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    3046 $as_echo "$cross_compiling" >&6; }
    3047 
    30483017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
    30493018$as_echo_n "checking for suffix of executables... " >&6; }
    30503019if { { ac_try="$ac_link"
     
    30843053rm -f conftest.$ac_ext
    30853054EXEEXT=$ac_cv_exeext
    30863055ac_exeext=$EXEEXT
     3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3057/* end confdefs.h.  */
     3058
     3059int
     3060main ()
     3061{
     3062
     3063  ;
     3064  return 0;
     3065}
     3066_ACEOF
     3067ac_clean_files="$ac_clean_files conftest.out"
     3068# Check that the compiler produces executables we can run.  If not, either
     3069# the compiler is broken, or we cross compile.
     3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     3071$as_echo_n "checking whether we are cross compiling... " >&6; }
     3072if test "$cross_compiling" != yes; then
     3073  { { ac_try="$ac_link"
     3074case "(($ac_try" in
     3075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3076  *) ac_try_echo=$ac_try;;
     3077esac
     3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3079$as_echo "$ac_try_echo"; } >&5
     3080  (eval "$ac_link") 2>&5
     3081  ac_status=$?
     3082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3083  test $ac_status = 0; }
     3084  if { ac_try='./conftest$ac_cv_exeext'
     3085  { { case "(($ac_try" in
     3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3087  *) ac_try_echo=$ac_try;;
     3088esac
     3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3090$as_echo "$ac_try_echo"; } >&5
     3091  (eval "$ac_try") 2>&5
     3092  ac_status=$?
     3093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3094  test $ac_status = 0; }; }; then
     3095    cross_compiling=no
     3096  else
     3097    if test "$cross_compiling" = maybe; then
     3098        cross_compiling=yes
     3099    else
     3100        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3102as_fn_error "cannot run C compiled programs.
     3103If you meant to cross compile, use \`--host'.
     3104See \`config.log' for more details." "$LINENO" 5; }
     3105    fi
     3106  fi
     3107fi
     3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     3109$as_echo "$cross_compiling" >&6; }
     3110
     3111rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     3112ac_clean_files=$ac_clean_files_save
    30873113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    30883114$as_echo_n "checking for suffix of object files... " >&6; }
    30893115if test "${ac_cv_objext+set}" = set; then :
     
    45324558done
    45334559
    45344560
    4535 # In the Cygwin environment, we need some additional flags.
    4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
    4537 $as_echo_n "checking for cygwin... " >&6; }
    4538 if test "${sim_cv_os_cygwin+set}" = set; then :
    4539   $as_echo_n "(cached) " >&6
    4540 else
    4541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4542 /* end confdefs.h.  */
    45434561
    4544 #ifdef __CYGWIN__
    4545 lose
    4546 #endif
    4547 _ACEOF
    4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4549   $EGREP "lose" >/dev/null 2>&1; then :
    4550   sim_cv_os_cygwin=yes
    4551 else
    4552   sim_cv_os_cygwin=no
     4562# Check whether --with-system-readline was given.
     4563if test "${with_system_readline+set}" = set; then :
     4564  withval=$with_system_readline;
    45534565fi
    4554 rm -f conftest*
    45554566
    4556 fi
    4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
    4558 $as_echo "$sim_cv_os_cygwin" >&6; }
    45594567
    4560 if test x$sim_cv_os_cygwin = xyes; then
    4561   TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
    4562 else
    4563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
    4564 $as_echo_n "checking for main in -ltermcap... " >&6; }
    4565 if test "${ac_cv_lib_termcap_main+set}" = set; then :
    4566   $as_echo_n "(cached) " >&6
    4567 else
    4568   ac_check_lib_save_LIBS=$LIBS
    4569 LIBS="-ltermcap  $LIBS"
    4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4568if test "$with_system_readline" = yes; then
     4569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
     4570$as_echo_n "checking for readline... " >&6; }
     4571  save_LIBS="$LIBS"
     4572  LIBS="-lreadline $save_LIBS"
     4573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45714574/* end confdefs.h.  */
    45724575
    4573 
     4576/* Override any GCC internal prototype to avoid an error.
     4577   Use char because int might match the return type of a GCC
     4578   builtin and then its argument prototype would still apply.  */
     4579#ifdef __cplusplus
     4580extern "C"
     4581#endif
     4582char add_history ();
    45744583int
    45754584main ()
    45764585{
    4577 return main ();
     4586return add_history ();
    45784587  ;
    45794588  return 0;
    45804589}
    45814590_ACEOF
    45824591if ac_fn_c_try_link "$LINENO"; then :
    4583   ac_cv_lib_termcap_main=yes
    4584 else
    4585   ac_cv_lib_termcap_main=no
    4586 fi
    4587 rm -f core conftest.err conftest.$ac_objext \
    4588     conftest$ac_exeext conftest.$ac_ext
    4589 LIBS=$ac_check_lib_save_LIBS
    4590 fi
    4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
    4592 $as_echo "$ac_cv_lib_termcap_main" >&6; }
    4593 if test "x$ac_cv_lib_termcap_main" = x""yes; then :
    4594   TERMCAP=-ltermcap
    4595 else
    4596   TERMCAP=""
    4597 fi
    4598 
    4599 fi
    4600 
    4601 
    4602 # We prefer the in-tree readline.  Top-level dependencies make sure
    4603 # src/readline (if it's there) is configured before src/sim.
    4604 if test -r ../../readline/Makefile; then
    4605   READLINE=../../readline/libreadline.a
    4606 else
    4607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
    4608 $as_echo_n "checking for readline in -lreadline... " >&6; }
    4609 if test "${ac_cv_lib_readline_readline+set}" = set; then :
    4610   $as_echo_n "(cached) " >&6
     4592  READLINE=-lreadline
    46114593else
    4612   ac_check_lib_save_LIBS=$LIBS
    4613 LIBS="-lreadline $TERMCAP $LIBS"
    4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4594   LIBS="-lreadline -lncurses $save_LIBS"
     4595      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46154596/* end confdefs.h.  */
    46164597
    46174598/* Override any GCC internal prototype to avoid an error.
     
    46204601#ifdef __cplusplus
    46214602extern "C"
    46224603#endif
    4623 char readline ();
     4604char add_history ();
    46244605int
    46254606main ()
    46264607{
    4627 return readline ();
     4608return add_history ();
    46284609  ;
    46294610  return 0;
    46304611}
    46314612_ACEOF
    46324613if ac_fn_c_try_link "$LINENO"; then :
    4633   ac_cv_lib_readline_readline=yes
     4614  READLINE="-lreadline -lncurses"
    46344615else
    4635   ac_cv_lib_readline_readline=no
     4616  as_fn_error "unable to detect readline" "$LINENO" 5
    46364617fi
    46374618rm -f core conftest.err conftest.$ac_objext \
    46384619    conftest$ac_exeext conftest.$ac_ext
    4639 LIBS=$ac_check_lib_save_LIBS
     4620
    46404621fi
    4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
    4642 $as_echo "$ac_cv_lib_readline_readline" >&6; }
    4643 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
    4644   READLINE=-lreadline
    4645 else
    4646   as_fn_error "the required \"readline\" library is missing" "$LINENO" 5
     4622rm -f core conftest.err conftest.$ac_objext \
     4623    conftest$ac_exeext conftest.$ac_ext
     4624  LIBS="$save_LIBS"
     4625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
     4626$as_echo "$READLINE" >&6; }
     4627  READLINE_DEPS=
     4628  READLINE_CFLAGS=
     4629else
     4630  READLINE='../../readline/libreadline.a -lncurses'
     4631  READLINE_DEPS='$(READLINE)'
     4632  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
    46474633fi
    46484634
    4649 fi
     4635
     4636
    46504637
    46514638
    46524639ac_sources="$sim_link_files"
  • sim/erc32/configure.ac

    diff -Naur gdb-7.0.90.orig/sim/erc32/configure.ac gdb-7.0.90-rtems4.10-20100225/sim/erc32/configure.ac
    old new  
    1111
    1212AC_CHECK_HEADERS(stdlib.h)
    1313
    14 # In the Cygwin environment, we need some additional flags.
    15 AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
    16 [AC_EGREP_CPP(lose, [
    17 #ifdef __CYGWIN__
    18 lose
    19 #endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
     14AC_ARG_WITH([system-readline],
     15  [AS_HELP_STRING([--with-system-readline],
     16                  [use installed readline library])])
    2017
    21 if test x$sim_cv_os_cygwin = xyes; then
    22   TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
     18if test "$with_system_readline" = yes; then
     19  AC_MSG_CHECKING([for readline])
     20  save_LIBS="$LIBS"
     21  LIBS="-lreadline $save_LIBS"
     22  AC_LINK_IFELSE([AC_LANG_CALL([],
     23    [add_history])], [READLINE=-lreadline],
     24    [ LIBS="-lreadline -lncurses $save_LIBS"
     25      AC_LINK_IFELSE([AC_LANG_CALL([],
     26        [add_history])], [READLINE="-lreadline -lncurses"],
     27        [AC_MSG_ERROR([unable to detect readline])])
     28    ])
     29  LIBS="$save_LIBS"
     30  AC_MSG_RESULT($READLINE)
     31  READLINE_DEPS=
     32  READLINE_CFLAGS=
    2333else
    24   AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
    25 fi
    26 AC_SUBST(TERMCAP)
    27 
    28 # We prefer the in-tree readline.  Top-level dependencies make sure
    29 # src/readline (if it's there) is configured before src/sim.
    30 if test -r ../../readline/Makefile; then
    31   READLINE=../../readline/libreadline.a
    32 else
    33   AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
    34                AC_ERROR([the required "readline" library is missing]), $TERMCAP)
     34  READLINE='../../readline/libreadline.a -lncurses'
     35  READLINE_DEPS='$(READLINE)'
     36  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
    3537fi
    3638AC_SUBST(READLINE)
     39AC_SUBST(READLINE_DEPS)
     40AC_SUBST(READLINE_CFLAGS)
     41
    3742SIM_AC_OUTPUT
  • sim/erc32/erc32.c

    diff -Naur gdb-7.0.90.orig/sim/erc32/erc32.c gdb-7.0.90-rtems4.10-20100225/sim/erc32/erc32.c
    old new  
    414414    if (rom8) mec_memcfg &= ~0x20000;
    415415    else mec_memcfg |= 0x20000;
    416416
    417     mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
     417    mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
    418418    mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
    419419
    420420    if (sparclite_board) {
  • sim/erc32/Makefile.in

    diff -Naur gdb-7.0.90.orig/sim/erc32/Makefile.in gdb-7.0.90-rtems4.10-20100225/sim/erc32/Makefile.in
    old new  
    1919
    2020## COMMON_PRE_CONFIG_FRAG
    2121
    22 TERMCAP_LIB = @TERMCAP@
     22# TERMCAP_LIB = -lncurses
    2323READLINE_LIB = @READLINE@
    2424
    2525SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
    2626SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
    27 SIM_EXTRA_ALL = sis
     27SIM_EXTRA_ALL = sis$(EXEEXT)
    2828SIM_EXTRA_INSTALL = install-sis
    2929SIM_EXTRA_CLEAN = clean-sis
    3030
     
    3838# `sis' doesn't need interf.o.
    3939SIS_OFILES = exec.o erc32.o func.o help.o float.o
    4040
    41 sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
    42         $(CC) $(ALL_CFLAGS) -o sis \
     41sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
     42        $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
    4343          sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
    4444
    4545# FIXME: This computes the build host's endianness, doesn't it?
     
    5252
    5353# Copy the files into directories where they will be run.
    5454install-sis: installdirs
    55         n=`echo sis | sed '$(program_transform_name)'`; \
    56         $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
     55        n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
     56        $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
    5757
    5858clean-sis:
    59         rm -f sis end end.h
     59        rm -f sis$(EXEEXT) end end.h
    6060
    6161configure:
    6262        @echo "Rebuilding configure..."
  • sim/h8300/compile.c

    diff -Naur gdb-7.0.90.orig/sim/h8300/compile.c gdb-7.0.90-rtems4.10-20100225/sim/h8300/compile.c
    old new  
    3838# define SIGTRAP 5
    3939#endif
    4040
     41#ifdef _WIN32
     42#ifndef SIGBUS
     43#define SIGBUS 10
     44#endif
     45#endif
     46
    4147int debug;
    4248
    4349host_callback *sim_callback;
  • sim/m32c/Makefile.in

    diff -Naur gdb-7.0.90.orig/sim/m32c/Makefile.in gdb-7.0.90-rtems4.10-20100225/sim/m32c/Makefile.in
    old new  
    5555        ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
    5656
    5757opc2c : opc2c.o safe-fgets.o
    58         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
     58        $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@
    5959
    6060sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
    6161        ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
     
    8383mem.o : mem.h cpu.h syscalls.h
    8484misc.o : cpu.h misc.h
    8585opc2c.o : safe-fgets.h
     86        $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/opc2c.c
    8687reg.o : cpu.h
    8788safe-fgets.o : safe-fgets.h
     89        $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/safe-fgets.c
    8890srcdest.c : cpu.h mem.h
    8991syscalls.c : cpu.h mem.h syscalls.h
    9092
Note: See TracBrowser for help on using the repository browser.