source: rtems/contrib/crossrpms/patches/gdb-6.8-rtems4.9-20080428.diff @ bbe338e

4.104.114.95
Last change on this file since bbe338e was bbe338e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 28, 2008 at 2:28:10 PM

New.

  • Property mode set to 100644
File size: 20.1 KB
  • sim/common/aclocal.m4

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/common/aclocal.m4 gdb-6.8-rtems4.9-20080428/sim/common/aclocal.m4
    old new  
    1818#
    1919# SIM_AC_OUTPUT
    2020
    21 AC_DEFUN(SIM_AC_COMMON,
     21AC_DEFUN([SIM_AC_COMMON],
    2222[
    2323# autoconf.info says this should be called right after AC_INIT.
    2424AC_CONFIG_HEADER(ifelse([$1],,config.h,[$1]):config.in)
     
    245245dnl supported.
    246246dnl ??? Until there is demonstrable value in doing something more complicated,
    247247dnl let's not.
    248 AC_DEFUN(SIM_AC_OPTION_ENVIRONMENT,
     248AC_DEFUN([SIM_AC_OPTION_ENVIRONMENT],
    249249[
    250250AC_ARG_ENABLE(sim-environment,
    251251[  --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.],
     
    269269dnl Without this option all possible alignment restrictions are accommodated.
    270270dnl arg[1] is hardwired target alignment
    271271dnl arg[2] is default target alignment
    272 AC_DEFUN(SIM_AC_OPTION_ALIGNMENT,
     272AC_DEFUN([SIM_AC_OPTION_ALIGNMENT],
    273273wire_alignment="[$1]"
    274274default_alignment="[$2]"
    275275[
     
    318318
    319319
    320320dnl Conditionally compile in assertion statements.
    321 AC_DEFUN(SIM_AC_OPTION_ASSERT,
     321AC_DEFUN([SIM_AC_OPTION_ASSERT],
    322322[
    323323AC_ARG_ENABLE(sim-assert,
    324324[  --enable-sim-assert                  Specify whether to perform random assertions.],
     
    342342dnl arg[3] is the number of bits in an address
    343343dnl arg[4] is the number of bits in an OpenFirmware cell.
    344344dnl FIXME: this information should be obtained from bfd/archure
    345 AC_DEFUN(SIM_AC_OPTION_BITSIZE,
     345AC_DEFUN([SIM_AC_OPTION_BITSIZE],
    346346wire_word_bitsize="[$1]"
    347347wire_word_msb="[$2]"
    348348wire_address_bitsize="[$3]"
     
    408408dnl that support both big and little endian targets.
    409409dnl arg[1] is hardwired target endianness.
    410410dnl arg[2] is default target endianness.
    411 AC_DEFUN(SIM_AC_OPTION_ENDIAN,
     411AC_DEFUN([SIM_AC_OPTION_ENDIAN],
    412412[
    413413wire_endian="[$1]"
    414414default_endian="[$2]"
     
    458458dnl --enable-sim-hostendian is for users of the simulator when
    459459dnl they find that AC_C_BIGENDIAN does not function correctly
    460460dnl (for instance in a canadian cross)
    461 AC_DEFUN(SIM_AC_OPTION_HOSTENDIAN,
     461AC_DEFUN([SIM_AC_OPTION_HOSTENDIAN],
    462462[
    463463AC_ARG_ENABLE(sim-hostendian,
    464464[  --enable-sim-hostendian=end          Specify host byte endian orientation.],
     
    490490dnl And optionally the bitsize of the floating point register.
    491491dnl arg[1] specifies the presence (or absence) of floating point hardware
    492492dnl arg[2] specifies the number of bits in a floating point register
    493 AC_DEFUN(SIM_AC_OPTION_FLOAT,
     493AC_DEFUN([SIM_AC_OPTION_FLOAT],
    494494[
    495495default_sim_float="[$1]"
    496496default_sim_float_bitsize="[$2]"
     
    519519
    520520
    521521dnl The argument is the default cache size if none is specified.
    522 AC_DEFUN(SIM_AC_OPTION_SCACHE,
     522AC_DEFUN([SIM_AC_OPTION_SCACHE],
    523523[
    524524default_sim_scache="ifelse([$1],,0,[$1])"
    525525AC_ARG_ENABLE(sim-scache,
     
    539539
    540540
    541541dnl The argument is the default model if none is specified.
    542 AC_DEFUN(SIM_AC_OPTION_DEFAULT_MODEL,
     542AC_DEFUN([SIM_AC_OPTION_DEFAULT_MODEL],
    543543[
    544544default_sim_default_model="ifelse([$1],,0,[$1])"
    545545AC_ARG_ENABLE(sim-default-model,
     
    559559dnl arg[1] Enable sim-hw by default? ("yes" or "no")
    560560dnl arg[2] is a space separated list of devices that override the defaults
    561561dnl arg[3] is a space separated list of extra target specific devices.
    562 AC_DEFUN(SIM_AC_OPTION_HARDWARE,
     562AC_DEFUN([SIM_AC_OPTION_HARDWARE],
    563563[
    564564if test x"[$1]" = x"yes"; then
    565565  sim_hw_p=yes
     
    621621dnl performance by inlining functions.
    622622dnl Guarantee that unconfigured simulators do not do any inlining
    623623sim_inline="-DDEFAULT_INLINE=0"
    624 AC_DEFUN(SIM_AC_OPTION_INLINE,
     624AC_DEFUN([SIM_AC_OPTION_INLINE],
    625625[
    626626default_sim_inline="ifelse([$1],,,-DDEFAULT_INLINE=[$1])"
    627627AC_ARG_ENABLE(sim-inline,
     
    666666AC_SUBST(sim_inline)
    667667
    668668
    669 AC_DEFUN(SIM_AC_OPTION_PACKAGES,
     669AC_DEFUN([SIM_AC_OPTION_PACKAGES],
    670670[
    671671AC_ARG_ENABLE(sim-packages,
    672672[  --enable-sim-packages=list           Specify the packages to be included in the build.],
     
    692692AC_SUBST(sim_packages)
    693693
    694694
    695 AC_DEFUN(SIM_AC_OPTION_REGPARM,
     695AC_DEFUN([SIM_AC_OPTION_REGPARM],
    696696[
    697697AC_ARG_ENABLE(sim-regparm,
    698698[  --enable-sim-regparm=nr-parm         Pass parameters in registers instead of on the stack - x86/GCC specific.],
     
    709709AC_SUBST(sim_regparm)
    710710
    711711
    712 AC_DEFUN(SIM_AC_OPTION_RESERVED_BITS,
     712AC_DEFUN([SIM_AC_OPTION_RESERVED_BITS],
    713713[
    714714default_sim_reserved_bits="ifelse([$1],,1,[$1])"
    715715AC_ARG_ENABLE(sim-reserved-bits,
     
    726726AC_SUBST(sim_reserved_bits)
    727727
    728728
    729 AC_DEFUN(SIM_AC_OPTION_SMP,
     729AC_DEFUN([SIM_AC_OPTION_SMP],
    730730[
    731731default_sim_smp="ifelse([$1],,5,[$1])"
    732732AC_ARG_ENABLE(sim-smp,
     
    746746AC_SUBST(sim_smp)
    747747
    748748
    749 AC_DEFUN(SIM_AC_OPTION_STDCALL,
     749AC_DEFUN([SIM_AC_OPTION_STDCALL],
    750750[
    751751AC_ARG_ENABLE(sim-stdcall,
    752752[  --enable-sim-stdcall=type            Use an alternative function call/return mechanism - x86/GCC specific.],
     
    763763AC_SUBST(sim_stdcall)
    764764
    765765
    766 AC_DEFUN(SIM_AC_OPTION_XOR_ENDIAN,
     766AC_DEFUN([SIM_AC_OPTION_XOR_ENDIAN],
    767767[
    768768default_sim_xor_endian="ifelse([$1],,8,[$1])"
    769769AC_ARG_ENABLE(sim-xor-endian,
     
    782782
    783783dnl --enable-build-warnings is for developers of the simulator.
    784784dnl it enables extra GCC specific warnings.
    785 AC_DEFUN(SIM_AC_OPTION_WARNINGS,
     785AC_DEFUN([SIM_AC_OPTION_WARNINGS],
    786786[
    787787# NOTE: Don't add -Wall or -Wunused, they both include
    788788# -Wunused-parameter which reports bogus warnings.
     
    866866dnl one afterwards.  The two pieces of the common fragment are inserted into
    867867dnl the target's fragment at the appropriate points.
    868868
    869 AC_DEFUN(SIM_AC_OUTPUT,
     869AC_DEFUN([SIM_AC_OUTPUT],
    870870[
    871871AC_LINK_FILES($sim_link_files, $sim_link_links)
    872872dnl Make @cgen_breaks@ non-null only if the sim uses CGEN.
     
    895895sinclude(../../config/gettext-sister.m4)
    896896
    897897dnl --enable-cgen-maint support
    898 AC_DEFUN(SIM_AC_OPTION_CGEN_MAINT,
     898AC_DEFUN([SIM_AC_OPTION_CGEN_MAINT],
    899899[
    900900cgen_maint=no
    901901dnl Default is to use one in build tree.
  • sim/erc32/configure

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/erc32/configure gdb-6.8-rtems4.9-20080428/sim/erc32/configure
    old new  
    309309# include <unistd.h>
    310310#endif"
    311311
    312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile TERMCAP READLINE cgen_breaks LIBOBJS LTLIBOBJS'
     312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile READLINE READLINE_DEPS READLINE_CFLAGS cgen_breaks LIBOBJS LTLIBOBJS'
    313313ac_subst_files=''
    314314
    315315# Initialize some variables set by options.
     
    858858  --enable-sim-trace=opts               Enable tracing flags
    859859  --enable-sim-profile=opts             Enable profiling flags
    860860
     861Optional Packages:
     862  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     863  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     864  --with-system-readline  use installed readline library
     865
    861866Some influential environment variables:
    862867  CC          C compiler command
    863868  CFLAGS      C compiler flags
     
    44934498done
    44944499
    44954500
    4496 # In the Cygwin environment, we need some additional flags.
    4497 echo "$as_me:$LINENO: checking for cygwin" >&5
    4498 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
    4499 if test "${sim_cv_os_cygwin+set}" = set; then
    4500   echo $ECHO_N "(cached) $ECHO_C" >&6
    4501 else
    4502   cat >conftest.$ac_ext <<_ACEOF
    4503 /* confdefs.h.  */
    4504 _ACEOF
    4505 cat confdefs.h >>conftest.$ac_ext
    4506 cat >>conftest.$ac_ext <<_ACEOF
    4507 /* end confdefs.h.  */
    45084501
    4509 #ifdef __CYGWIN__
    4510 lose
    4511 #endif
    4512 _ACEOF
    4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4514   $EGREP "lose" >/dev/null 2>&1; then
    4515   sim_cv_os_cygwin=yes
    4516 else
    4517   sim_cv_os_cygwin=no
    4518 fi
    4519 rm -f conftest*
     4502# Check whether --with-system-readline or --without-system-readline was given.
     4503if test "${with_system_readline+set}" = set; then
     4504  withval="$with_system_readline"
    45204505
    4521 fi
    4522 echo "$as_me:$LINENO: result: $sim_cv_os_cygwin" >&5
    4523 echo "${ECHO_T}$sim_cv_os_cygwin" >&6
     4506fi;
    45244507
    4525 if test x$sim_cv_os_cygwin = xyes; then
    4526   TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
    4527 else
    4528   echo "$as_me:$LINENO: checking for main in -ltermcap" >&5
    4529 echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6
    4530 if test "${ac_cv_lib_termcap_main+set}" = set; then
     4508if test "$with_system_readline" = yes; then
     4509  save_LIBS="$LIBS"
     4510  echo "$as_me:$LINENO: checking for library containing readline" >&5
     4511echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6
     4512if test "${ac_cv_search_readline+set}" = set; then
    45314513  echo $ECHO_N "(cached) $ECHO_C" >&6
    45324514else
    4533   ac_check_lib_save_LIBS=$LIBS
    4534 LIBS="-ltermcap  $LIBS"
     4515  ac_func_search_save_LIBS=$LIBS
     4516ac_cv_search_readline=no
    45354517cat >conftest.$ac_ext <<_ACEOF
    45364518/* confdefs.h.  */
    45374519_ACEOF
     
    45394521cat >>conftest.$ac_ext <<_ACEOF
    45404522/* end confdefs.h.  */
    45414523
    4542 
     4524/* Override any gcc2 internal prototype to avoid an error.  */
     4525#ifdef __cplusplus
     4526extern "C"
     4527#endif
     4528/* We use char because int might match the return type of a gcc2
     4529   builtin and then its argument prototype would still apply.  */
     4530char readline ();
    45434531int
    45444532main ()
    45454533{
    4546 main ();
     4534readline ();
    45474535  ;
    45484536  return 0;
    45494537}
     
    45704558  ac_status=$?
    45714559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45724560  (exit $ac_status); }; }; then
    4573   ac_cv_lib_termcap_main=yes
     4561  ac_cv_search_readline="none required"
    45744562else
    45754563  echo "$as_me: failed program was:" >&5
    45764564sed 's/^/| /' conftest.$ac_ext >&5
    45774565
    4578 ac_cv_lib_termcap_main=no
    45794566fi
    45804567rm -f conftest.err conftest.$ac_objext \
    45814568      conftest$ac_exeext conftest.$ac_ext
    4582 LIBS=$ac_check_lib_save_LIBS
    4583 fi
    4584 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5
    4585 echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6
    4586 if test $ac_cv_lib_termcap_main = yes; then
    4587   TERMCAP=-ltermcap
    4588 else
    4589   TERMCAP=""
    4590 fi
    4591 
    4592 fi
    4593 
    4594 
    4595 # We prefer the in-tree readline.  Top-level dependencies make sure
    4596 # src/readline (if it's there) is configured before src/sim.
    4597 if test -r ../../readline/Makefile; then
    4598   READLINE=../../readline/libreadline.a
    4599 else
    4600   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
    4601 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
    4602 if test "${ac_cv_lib_readline_readline+set}" = set; then
    4603   echo $ECHO_N "(cached) $ECHO_C" >&6
    4604 else
    4605   ac_check_lib_save_LIBS=$LIBS
    4606 LIBS="-lreadline $TERMCAP $LIBS"
    4607 cat >conftest.$ac_ext <<_ACEOF
     4569if test "$ac_cv_search_readline" = no; then
     4570  for ac_lib in readline; do
     4571    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4572    cat >conftest.$ac_ext <<_ACEOF
    46084573/* confdefs.h.  */
    46094574_ACEOF
    46104575cat confdefs.h >>conftest.$ac_ext
     
    46484613  ac_status=$?
    46494614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    46504615  (exit $ac_status); }; }; then
    4651   ac_cv_lib_readline_readline=yes
     4616  ac_cv_search_readline="-l$ac_lib"
     4617break
    46524618else
    46534619  echo "$as_me: failed program was:" >&5
    46544620sed 's/^/| /' conftest.$ac_ext >&5
    46554621
    4656 ac_cv_lib_readline_readline=no
    46574622fi
    46584623rm -f conftest.err conftest.$ac_objext \
    46594624      conftest$ac_exeext conftest.$ac_ext
    4660 LIBS=$ac_check_lib_save_LIBS
     4625  done
    46614626fi
    4662 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
    4663 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
    4664 if test $ac_cv_lib_readline_readline = yes; then
    4665   READLINE=-lreadline
    4666 else
    4667   { { echo "$as_me:$LINENO: error: the required \"readline\" library is missing" >&5
    4668 echo "$as_me: error: the required \"readline\" library is missing" >&2;}
    4669    { (exit 1); exit 1; }; }
     4627LIBS=$ac_func_search_save_LIBS
    46704628fi
     4629echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
     4630echo "${ECHO_T}$ac_cv_search_readline" >&6
     4631if test "$ac_cv_search_readline" != no; then
     4632  test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS"
     4633
     4634    READLINE=-lreadline
     4635    READLINE_DEPS=
     4636    READLINE_CFLAGS=
    46714637
    46724638fi
    46734639
     4640  LIBS="$save_LIBS"
     4641else
     4642  READLINE='$(READLINE_DIR)/libreadline.a'
     4643  READLINE_DEPS='$(READLINE)'
     4644  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
     4645fi
     4646
     4647
     4648
     4649
    46744650
    46754651ac_sources="$sim_link_files"
    46764652ac_dests="$sim_link_links"
     
    53895365s,@sim_stdio@,$sim_stdio,;t t
    53905366s,@sim_trace@,$sim_trace,;t t
    53915367s,@sim_profile@,$sim_profile,;t t
    5392 s,@TERMCAP@,$TERMCAP,;t t
    53935368s,@READLINE@,$READLINE,;t t
     5369s,@READLINE_DEPS@,$READLINE_DEPS,;t t
     5370s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
    53945371s,@cgen_breaks@,$cgen_breaks,;t t
    53955372s,@LIBOBJS@,$LIBOBJS,;t t
    53965373s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • sim/erc32/configure.ac

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/erc32/configure.ac gdb-6.8-rtems4.9-20080428/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  save_LIBS="$LIBS"
     20  AC_SEARCH_LIBS([readline],[readline],[
     21    READLINE=-lreadline
     22    READLINE_DEPS=
     23    READLINE_CFLAGS=
     24    ],[])
     25  LIBS="$save_LIBS"
    2326else
    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)
     27  READLINE='$(READLINE_DIR)/libreadline.a'
     28  READLINE_DEPS='$(READLINE)'
     29  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
    3530fi
    3631AC_SUBST(READLINE)
     32AC_SUBST(READLINE_DEPS)
     33AC_SUBST(READLINE_CFLAGS)
     34
    3735SIM_AC_OUTPUT
  • sim/erc32/erc32.c

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/erc32/erc32.c gdb-6.8-rtems4.9-20080428/sim/erc32/erc32.c
    old new  
    2424
    2525#include <sys/types.h>
    2626#include <stdio.h>
     27#include <string.h>
    2728#include <termios.h>
    2829#include <sys/fcntl.h>
    2930#include <sys/file.h>
     
    413414    if (rom8) mec_memcfg &= ~0x20000;
    414415    else mec_memcfg |= 0x20000;
    415416
    416     mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
     417    mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
    417418    mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
    418419
    419420    if (sparclite_board) {
     
    16591660        errmec = 0;
    16601661        return(1);
    16611662    }
    1662 #endif;
     1663#endif
    16631664
    16641665    if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
    16651666        fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz);
     
    17361737        errmec = 0;
    17371738        return(1);
    17381739    }
    1739 #endif;
     1740#endif
    17401741
    17411742    if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
    17421743        if (mem_accprot) {
  • sim/erc32/exec.c

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/erc32/exec.c gdb-6.8-rtems4.9-20080428/sim/erc32/exec.c
    old new  
    17131713            sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1];
    17141714            sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1];
    17151715    default:
    1716       ;
     1716      break;
    17171717    }
    17181718#endif
    17191719
     
    18861886        sregs->fs[rd & ~1] = sregs->fdp[rd | 1];
    18871887        sregs->fs[rd | 1] = sregs->fdp[rd & ~1];
    18881888    default:
    1889       ;
     1889      break;
    18901890    }
    18911891#endif
    18921892    if (sregs->fpstate == FP_EXC_PE) {
  • sim/erc32/Makefile.in

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/erc32/Makefile.in gdb-6.8-rtems4.9-20080428/sim/erc32/Makefile.in
    old new  
    1818
    1919## COMMON_PRE_CONFIG_FRAG
    2020
    21 TERMCAP_LIB = @TERMCAP@
     21# TERMCAP_LIB = -lncurses
    2222READLINE_LIB = @READLINE@
    2323
    2424SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
    2525SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
    26 SIM_EXTRA_ALL = sis
     26SIM_EXTRA_ALL = sis$(EXEEXT)
    2727SIM_EXTRA_INSTALL = install-sis
    2828SIM_EXTRA_CLEAN = clean-sis
    2929
     
    3737# `sis' doesn't need interf.o.
    3838SIS_OFILES = exec.o erc32.o func.o help.o float.o
    3939
    40 sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
    41         $(CC) $(ALL_CFLAGS) -o sis \
     40sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
     41        $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
    4242          sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
    4343
    4444# FIXME: This computes the build host's endianness, doesn't it?
     
    5151
    5252# Copy the files into directories where they will be run.
    5353install-sis: installdirs
    54         n=`echo sis | sed '$(program_transform_name)'`; \
    55         $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
     54        n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
     55        $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
    5656
    5757clean-sis:
    58         rm -f sis end end.h
     58        rm -f sis$(EXEEXT) end end.h
    5959
    6060configure:
    6161        @echo "Rebuilding configure..."
  • sim/ppc/ppc-instructions

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/ppc/ppc-instructions gdb-6.8-rtems4.9-20080428/sim/ppc/ppc-instructions
    old new  
    34023402            case spr_dec:
    34033403              *rT = cpu_get_decrementer(processor);
    34043404              break;
     3405                case spr_tbrl:
     3406                  if (is_64bit_implementation) *rT = TB;
     3407                  else                         *rT = EXTRACTED64(TB, 32, 63);
     3408                break;
     3409                case spr_tbru:
     3410                  if (is_64bit_implementation) *rT = EXTRACTED64(TB, 0, 31);
     3411                  else                         *rT = EXTRACTED64(TB, 0, 31);
     3412                break;
    34053413            case spr_tbu:
    34063414            case spr_tbl:
    34073415              /* NOTE - these SPR's are not readable. Use mftb[ul] */
  • sim/ppc/ppc-spr-table

    diff -Naur -x autom4te.cache gdb-6.8.orig/sim/ppc/ppc-spr-table gdb-6.8-rtems4.9-20080428/sim/ppc/ppc-spr-table
    old new  
    3232SRR0:26:0:0
    3333SRR1:27:0:0
    3434VRSAVE:256:0:0
     35TBRL:268:0:0
     36TBRU:269:0:0
    3537SPRG0:272:0:0
    3638SPRG1:273:0:0
    3739SPRG2:274:0:0
Note: See TracBrowser for help on using the repository browser.