source:
rtems/contrib/crossrpms/patches/gdb-6.8.91-rtems4.10-20090926.diff
@
5658a32
Last change on this file since 5658a32 was 5658a32, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/26/09 at 05:52:05 | |
---|---|
|
|
File size: 21.9 KB |
-
bfd/sysdep.h
diff -Naur gdb-6.8.91.orig/bfd/sysdep.h gdb-6.8.91-rtems4.10-20090926/bfd/sysdep.h
old new 136 136 #endif 137 137 138 138 #if !HAVE_DECL_STRSTR 139 extern char *strstr (); 139 /* extern char *strstr (); */ 140 140 #endif 141 141 142 142 #ifdef HAVE_FTELLO -
gdb/config.in
diff -Naur gdb-6.8.91.orig/gdb/config.in gdb-6.8.91-rtems4.10-20090926/gdb/config.in
old new 792 792 /* Define to `int' if <sys/types.h> does not define. */ 793 793 #undef pid_t 794 794 795 /* readline-6.0 started to use different name. */ 796 #undef readline_echoing_p 797 795 798 /* Define to the equivalent of the C99 'restrict' keyword, or to 796 799 nothing if this is not supported. Do not define if restrict is 797 800 supported directly. */ -
gdb/configure
diff -Naur gdb-6.8.91.orig/gdb/configure gdb-6.8.91-rtems4.10-20090926/gdb/configure
old new 8431 8431 READLINE=-lreadline 8432 8432 READLINE_DEPS= 8433 8433 READLINE_CFLAGS= 8434 8435 # readline-6.0 started to use the name `_rl_echoing_p'. 8436 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure. 8437 8438 echo "$as_me:$LINENO: checking for readline_echoing_p" >&5 8439 echo $ECHO_N "checking for readline_echoing_p... $ECHO_C" >&6 8440 save_LIBS=$LIBS 8441 LIBS="$LIBS $READLINE" 8442 cat >conftest.$ac_ext <<_ACEOF 8443 /* confdefs.h. */ 8444 _ACEOF 8445 cat confdefs.h >>conftest.$ac_ext 8446 cat >>conftest.$ac_ext <<_ACEOF 8447 /* end confdefs.h. */ 8448 8449 int 8450 main () 8451 { 8452 extern int readline_echoing_p; 8453 return readline_echoing_p; 8454 ; 8455 return 0; 8456 } 8457 _ACEOF 8458 rm -f conftest.$ac_objext conftest$ac_exeext 8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8460 (eval $ac_link) 2>conftest.er1 8461 ac_status=$? 8462 grep -v '^ *+' conftest.er1 >conftest.err 8463 rm -f conftest.er1 8464 cat conftest.err >&5 8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8466 (exit $ac_status); } && 8467 { ac_try='test -z "$ac_c_werror_flag" 8468 || test ! -s conftest.err' 8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8470 (eval $ac_try) 2>&5 8471 ac_status=$? 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 (exit $ac_status); }; } && 8474 { ac_try='test -s conftest$ac_exeext' 8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8476 (eval $ac_try) 2>&5 8477 ac_status=$? 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); }; }; then 8480 READLINE_ECHOING_P=yes 8481 else 8482 echo "$as_me: failed program was:" >&5 8483 sed 's/^/| /' conftest.$ac_ext >&5 8484 8485 READLINE_ECHOING_P=no 8486 8487 cat >>confdefs.h <<\_ACEOF 8488 #define readline_echoing_p _rl_echoing_p 8489 _ACEOF 8490 8491 fi 8492 rm -f conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494 LIBS="$save_LIBS" 8495 echo "$as_me:$LINENO: result: $READLINE_ECHOING_P" >&5 8496 echo "${ECHO_T}$READLINE_ECHOING_P" >&6 8434 8497 else 8435 8498 READLINE='$(READLINE_DIR)/libreadline.a' 8436 8499 READLINE_DEPS='$(READLINE)' -
gdb/configure.ac
diff -Naur gdb-6.8.91.orig/gdb/configure.ac gdb-6.8.91-rtems4.10-20090926/gdb/configure.ac
old new 534 534 READLINE=-lreadline 535 535 READLINE_DEPS= 536 536 READLINE_CFLAGS= 537 538 # readline-6.0 started to use the name `_rl_echoing_p'. 539 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure. 540 541 AC_MSG_CHECKING([for readline_echoing_p]) 542 save_LIBS=$LIBS 543 LIBS="$LIBS $READLINE" 544 AC_LINK_IFELSE(AC_LANG_PROGRAM(,[[extern int readline_echoing_p; 545 return readline_echoing_p;]]), 546 [READLINE_ECHOING_P=yes], 547 [READLINE_ECHOING_P=no 548 AC_DEFINE([readline_echoing_p], [_rl_echoing_p], 549 [readline-6.0 started to use different name.])]) 550 LIBS="$save_LIBS" 551 AC_MSG_RESULT([$READLINE_ECHOING_P]) 537 552 else 538 553 READLINE='$(READLINE_DIR)/libreadline.a' 539 554 READLINE_DEPS='$(READLINE)' -
gdb/lm32-tdep.c
diff -Naur gdb-6.8.91.orig/gdb/lm32-tdep.c gdb-6.8.91-rtems4.10-20090926/gdb/lm32-tdep.c
old new 35 35 #include "regcache.h" 36 36 #include "trad-frame.h" 37 37 #include "reggroups.h" 38 #include " opcodes/lm32-desc.h"38 #include "../opcodes/lm32-desc.h" 39 39 40 40 #include "gdb_string.h" 41 41 -
gdb/sparc-tdep.c
diff -Naur gdb-6.8.91.orig/gdb/sparc-tdep.c gdb-6.8.91-rtems4.10-20090926/gdb/sparc-tdep.c
old new 1100 1100 sparc32_store_return_value (struct type *type, struct regcache *regcache, 1101 1101 const gdb_byte *valbuf) 1102 1102 { 1103 int len = TYPE_LENGTH (type);1103 size_t len = TYPE_LENGTH (type); 1104 1104 gdb_byte buf[8]; 1105 1105 1106 1106 gdb_assert (!sparc_structure_or_union_p (type)); -
sim/common/Make-common.in
diff -Naur gdb-6.8.91.orig/sim/common/Make-common.in gdb-6.8.91-rtems4.10-20090926/sim/common/Make-common.in
old new 52 52 tooldir = $(libdir)/$(target_alias) 53 53 54 54 datadir = @datadir@ 55 datarootdir = @datarootdir@ 55 56 mandir = @mandir@ 56 57 man1dir = $(mandir)/man1 57 58 infodir = @infodir@ -
sim/erc32/configure
diff -Naur gdb-6.8.91.orig/sim/erc32/configure gdb-6.8.91-rtems4.10-20090926/sim/erc32/configure
old new 591 591 ac_subst_vars='LTLIBOBJS 592 592 LIBOBJS 593 593 cgen_breaks 594 READLINE_CFLAGS 595 READLINE_DEPS 594 596 READLINE 595 TERMCAP596 597 REPORT_BUGS_TEXI 597 598 REPORT_BUGS_TO 598 599 PKGVERSION … … 715 716 enable_sim_profile 716 717 with_pkgversion 717 718 with_bugurl 719 with_system_readline 718 720 ' 719 721 ac_precious_vars='build_alias 720 722 host_alias … … 1356 1358 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1357 1359 --with-pkgversion=PKG Use PKG in the version string in place of "GDB" 1358 1360 --with-bugurl=URL Direct users to URL to report a bug 1361 --with-system-readline use installed readline library 1359 1362 1360 1363 Some influential environment variables: 1361 1364 CC C compiler command … … 2411 2414 2412 2415 2413 2416 2414 2415 2417 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around 2416 2418 # it by inlining the macro's contents. 2417 2419 # This file contains common code used by all simulators. … … 2911 2913 int 2912 2914 main () 2913 2915 { 2914 2916 return 0; 2915 2917 ; 2916 2918 return 0; 2917 2919 } 2918 2920 _ACEOF 2919 2921 ac_clean_files_save=$ac_clean_files 2920 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"2922 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2921 2923 # Try to create an executable without -o first, disregard a.out. 2922 2924 # It will help us diagnose broken compilers, and finding out an intuition 2923 2925 # of exeext. 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&52925 $as_echo_n "checking for C compiler default output file name... " >&6; }2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2927 $as_echo_n "checking whether the C compiler works... " >&6; } 2926 2928 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2927 2929 2928 2930 # The possible output files: … … 2984 2986 else 2985 2987 ac_file='' 2986 2988 fi 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&52988 $as_echo "$ac_file" >&6; }2989 2989 if test -z "$ac_file"; then : 2990 $as_echo "$as_me: failed program was:" >&5 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991 $as_echo "no" >&6; } 2992 $as_echo "$as_me: failed program was:" >&5 2991 2993 sed 's/^/| /' conftest.$ac_ext >&5 2992 2994 2993 2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 … … 2995 2997 { as_fn_set_status 77 2996 2998 as_fn_error "C compiler cannot create executables 2997 2999 See \`config.log' for more details." "$LINENO" 5; }; } 3000 else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3002 $as_echo "yes" >&6; } 2998 3003 fi 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3005 $as_echo_n "checking for C compiler default output file name... " >&6; } 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3007 $as_echo "$ac_file" >&6; } 2999 3008 ac_exeext=$ac_cv_exeext 3000 3009 3001 # Check that the compiler produces executables we can run. If not, either 3002 # the compiler is broken, or we cross compile. 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3004 $as_echo_n "checking whether the C compiler works... " >&6; } 3005 # If not cross compiling, check that we can run a simple program. 3006 if test "$cross_compiling" != yes; then 3007 if { ac_try='./$ac_file' 3008 { { case "(($ac_try" in 3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3010 *) ac_try_echo=$ac_try;; 3011 esac 3012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3013 $as_echo "$ac_try_echo"; } >&5 3014 (eval "$ac_try") 2>&5 3015 ac_status=$? 3016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3017 test $ac_status = 0; }; }; then 3018 cross_compiling=no 3019 else 3020 if test "$cross_compiling" = maybe; then 3021 cross_compiling=yes 3022 else 3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3025 as_fn_error "cannot run C compiled programs. 3026 If you meant to cross compile, use \`--host'. 3027 See \`config.log' for more details." "$LINENO" 5; } 3028 fi 3029 fi 3030 fi 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3032 $as_echo "yes" >&6; } 3033 3034 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3010 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3035 3011 ac_clean_files=$ac_clean_files_save 3036 # Check that the compiler produces executables we can run. If not, either3037 # the compiler is broken, or we cross compile.3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&53039 $as_echo_n "checking whether we are cross compiling... " >&6; }3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&53041 $as_echo "$cross_compiling" >&6; }3042 3043 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3044 3013 $as_echo_n "checking for suffix of executables... " >&6; } 3045 3014 if { { ac_try="$ac_link" … … 3079 3048 rm -f conftest.$ac_ext 3080 3049 EXEEXT=$ac_cv_exeext 3081 3050 ac_exeext=$EXEEXT 3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3052 /* end confdefs.h. */ 3053 3054 int 3055 main () 3056 { 3057 3058 ; 3059 return 0; 3060 } 3061 _ACEOF 3062 ac_clean_files="$ac_clean_files conftest.out" 3063 # Check that the compiler produces executables we can run. If not, either 3064 # the compiler is broken, or we cross compile. 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3066 $as_echo_n "checking whether we are cross compiling... " >&6; } 3067 if test "$cross_compiling" != yes; then 3068 { { ac_try="$ac_link" 3069 case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072 esac 3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3074 $as_echo "$ac_try_echo"; } >&5 3075 (eval "$ac_link") 2>&5 3076 ac_status=$? 3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 test $ac_status = 0; } 3079 if { ac_try='./conftest$ac_cv_exeext' 3080 { { case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083 esac 3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3085 $as_echo "$ac_try_echo"; } >&5 3086 (eval "$ac_try") 2>&5 3087 ac_status=$? 3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3089 test $ac_status = 0; }; }; then 3090 cross_compiling=no 3091 else 3092 if test "$cross_compiling" = maybe; then 3093 cross_compiling=yes 3094 else 3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3097 as_fn_error "cannot run C compiled programs. 3098 If you meant to cross compile, use \`--host'. 3099 See \`config.log' for more details." "$LINENO" 5; } 3100 fi 3101 fi 3102 fi 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3104 $as_echo "$cross_compiling" >&6; } 3105 3106 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3107 ac_clean_files=$ac_clean_files_save 3082 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3083 3109 $as_echo_n "checking for suffix of object files... " >&6; } 3084 3110 if test "${ac_cv_objext+set}" = set; then : … … 4510 4536 done 4511 4537 4512 4538 4513 # In the Cygwin environment, we need some additional flags.4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&54515 $as_echo_n "checking for cygwin... " >&6; }4516 if test "${sim_cv_os_cygwin+set}" = set; then :4517 $as_echo_n "(cached) " >&64518 else4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext4520 /* end confdefs.h. */4521 4539 4522 #ifdef __CYGWIN__ 4523 lose 4524 #endif 4525 _ACEOF 4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4527 $EGREP "lose" >/dev/null 2>&1; then : 4528 sim_cv_os_cygwin=yes 4529 else 4530 sim_cv_os_cygwin=no 4540 # Check whether --with-system-readline was given. 4541 if test "${with_system_readline+set}" = set; then : 4542 withval=$with_system_readline; 4531 4543 fi 4532 rm -f conftest*4533 4544 4534 fi4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&54536 $as_echo "$sim_cv_os_cygwin" >&6; }4537 4545 4538 if test x$sim_cv_os_cygwin = xyes; then 4539 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32' 4540 else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5 4542 $as_echo_n "checking for main in -ltermcap... " >&6; } 4543 if test "${ac_cv_lib_termcap_main+set}" = set; then : 4544 $as_echo_n "(cached) " >&6 4545 else 4546 ac_check_lib_save_LIBS=$LIBS 4547 LIBS="-ltermcap $LIBS" 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546 if test "$with_system_readline" = yes; then 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 4548 $as_echo_n "checking for readline... " >&6; } 4549 save_LIBS="$LIBS" 4550 LIBS="-lreadline $save_LIBS" 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549 4552 /* end confdefs.h. */ 4550 4553 4551 4554 /* Override any GCC internal prototype to avoid an error. 4555 Use char because int might match the return type of a GCC 4556 builtin and then its argument prototype would still apply. */ 4557 #ifdef __cplusplus 4558 extern "C" 4559 #endif 4560 char add_history (); 4552 4561 int 4553 4562 main () 4554 4563 { 4555 return main();4564 return add_history (); 4556 4565 ; 4557 4566 return 0; 4558 4567 } 4559 4568 _ACEOF 4560 4569 if ac_fn_c_try_link "$LINENO"; then : 4561 ac_cv_lib_termcap_main=yes 4562 else 4563 ac_cv_lib_termcap_main=no 4564 fi 4565 rm -f core conftest.err conftest.$ac_objext \ 4566 conftest$ac_exeext conftest.$ac_ext 4567 LIBS=$ac_check_lib_save_LIBS 4568 fi 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5 4570 $as_echo "$ac_cv_lib_termcap_main" >&6; } 4571 if test "x$ac_cv_lib_termcap_main" = x""yes; then : 4572 TERMCAP=-ltermcap 4573 else 4574 TERMCAP="" 4575 fi 4576 4577 fi 4578 4579 4580 # We prefer the in-tree readline. Top-level dependencies make sure 4581 # src/readline (if it's there) is configured before src/sim. 4582 if test -r ../../readline/Makefile; then 4583 READLINE=../../readline/libreadline.a 4584 else 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 4586 $as_echo_n "checking for readline in -lreadline... " >&6; } 4587 if test "${ac_cv_lib_readline_readline+set}" = set; then : 4588 $as_echo_n "(cached) " >&6 4570 READLINE=-lreadline 4589 4571 else 4590 ac_check_lib_save_LIBS=$LIBS 4591 LIBS="-lreadline $TERMCAP $LIBS" 4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572 LIBS="-lreadline -lncurses $save_LIBS" 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4593 4574 /* end confdefs.h. */ 4594 4575 4595 4576 /* Override any GCC internal prototype to avoid an error. … … 4598 4579 #ifdef __cplusplus 4599 4580 extern "C" 4600 4581 #endif 4601 char readline();4582 char add_history (); 4602 4583 int 4603 4584 main () 4604 4585 { 4605 return readline();4586 return add_history (); 4606 4587 ; 4607 4588 return 0; 4608 4589 } 4609 4590 _ACEOF 4610 4591 if ac_fn_c_try_link "$LINENO"; then : 4611 ac_cv_lib_readline_readline=yes4592 READLINE="-lreadline -lncurses" 4612 4593 else 4613 a c_cv_lib_readline_readline=no4594 as_fn_error "unable to detect readline" "$LINENO" 5 4614 4595 fi 4615 4596 rm -f core conftest.err conftest.$ac_objext \ 4616 4597 conftest$ac_exeext conftest.$ac_ext 4617 LIBS=$ac_check_lib_save_LIBS 4598 4618 4599 fi 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 4620 $as_echo "$ac_cv_lib_readline_readline" >&6; } 4621 if test "x$ac_cv_lib_readline_readline" = x""yes; then : 4622 READLINE=-lreadline 4623 else 4624 as_fn_error "the required \"readline\" library is missing" "$LINENO" 5 4600 rm -f core conftest.err conftest.$ac_objext \ 4601 conftest$ac_exeext conftest.$ac_ext 4602 LIBS="$save_LIBS" 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 4604 $as_echo "$READLINE" >&6; } 4605 READLINE_DEPS= 4606 READLINE_CFLAGS= 4607 else 4608 READLINE='../../readline/libreadline.a -lncurses' 4609 READLINE_DEPS='$(READLINE)' 4610 READLINE_CFLAGS='-I$(READLINE_SRC)/..' 4625 4611 fi 4626 4612 4627 fi 4613 4614 4628 4615 4629 4616 4630 4617 ac_sources="$sim_link_files" -
sim/erc32/configure.ac
diff -Naur gdb-6.8.91.orig/sim/erc32/configure.ac gdb-6.8.91-rtems4.10-20090926/sim/erc32/configure.ac
old new 11 11 12 12 AC_CHECK_HEADERS(stdlib.h) 13 13 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])]) 14 AC_ARG_WITH([system-readline], 15 [AS_HELP_STRING([--with-system-readline], 16 [use installed readline library])]) 20 17 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' 18 if 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= 23 33 else 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)/..' 35 37 fi 36 38 AC_SUBST(READLINE) 39 AC_SUBST(READLINE_DEPS) 40 AC_SUBST(READLINE_CFLAGS) 41 37 42 SIM_AC_OUTPUT -
sim/erc32/erc32.c
diff -Naur gdb-6.8.91.orig/sim/erc32/erc32.c gdb-6.8.91-rtems4.10-20090926/sim/erc32/erc32.c
old new 414 414 if (rom8) mec_memcfg &= ~0x20000; 415 415 else mec_memcfg |= 0x20000; 416 416 417 mem_ramsz = ( 256* 1024) << ((mec_memcfg >> 10) & 7);417 mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7); 418 418 mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7); 419 419 420 420 if (sparclite_board) { -
sim/erc32/Makefile.in
diff -Naur gdb-6.8.91.orig/sim/erc32/Makefile.in gdb-6.8.91-rtems4.10-20090926/sim/erc32/Makefile.in
old new 19 19 20 20 ## COMMON_PRE_CONFIG_FRAG 21 21 22 TERMCAP_LIB = @TERMCAP@ 22 # TERMCAP_LIB = -lncurses 23 23 READLINE_LIB = @READLINE@ 24 24 25 25 SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o 26 26 SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm 27 SIM_EXTRA_ALL = sis 27 SIM_EXTRA_ALL = sis$(EXEEXT) 28 28 SIM_EXTRA_INSTALL = install-sis 29 29 SIM_EXTRA_CLEAN = clean-sis 30 30 … … 38 38 # `sis' doesn't need interf.o. 39 39 SIS_OFILES = exec.o erc32.o func.o help.o float.o 40 40 41 sis : sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)42 $(CC) $(ALL_CFLAGS) -o sis \41 sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS) 42 $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \ 43 43 sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS) 44 44 45 45 # FIXME: This computes the build host's endianness, doesn't it? … … 52 52 53 53 # Copy the files into directories where they will be run. 54 54 install-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 57 57 58 58 clean-sis: 59 rm -f sis end end.h59 rm -f sis$(EXEEXT) end end.h 60 60 61 61 configure: 62 62 @echo "Rebuilding configure..." -
sim/h8300/compile.c
diff -Naur gdb-6.8.91.orig/sim/h8300/compile.c gdb-6.8.91-rtems4.10-20090926/sim/h8300/compile.c
old new 38 38 # define SIGTRAP 5 39 39 #endif 40 40 41 #ifdef _WIN32 42 #ifndef SIGBUS 43 #define SIGBUS 10 44 #endif 45 #endif 46 41 47 int debug; 42 48 43 49 host_callback *sim_callback; -
sim/m32c/Makefile.in
diff -Naur gdb-6.8.91.orig/sim/m32c/Makefile.in gdb-6.8.91-rtems4.10-20090926/sim/m32c/Makefile.in
old new 55 55 ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c 56 56 57 57 opc2c : opc2c.o safe-fgets.o 58 $(CC ) $(CFLAGS) $(LDFLAGS) $^ -o $@58 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@ 59 59 60 60 sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld 61 61 ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o … … 83 83 mem.o : mem.h cpu.h syscalls.h 84 84 misc.o : cpu.h misc.h 85 85 opc2c.o : safe-fgets.h 86 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/opc2c.c 86 87 reg.o : cpu.h 87 88 safe-fgets.o : safe-fgets.h 89 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/safe-fgets.c 88 90 srcdest.c : cpu.h mem.h 89 91 syscalls.c : cpu.h mem.h syscalls.h 90 92
Note: See TracBrowser
for help on using the repository browser.