Hello I've a long history with gdb using ltib :) It simply fails every time. gdb running on target builds correctely gdbserver running on target builds correctely gdb cross run on host fails
set -x umask 022 cd /home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD cd gdb-stable ORIG_PATH=$PATH # This is the optimised host type. Needed to prevent infering a native build
OPT_CFGHOST=`echo ${TOOLCHAIN_PREFIX} | perl -n -e 's,-$,,;print'`
# do something (the least costly) if [ -z "$PKG_GDB_CROSS_WANT_ED$PKG_GDB_SERVER_WANT_ED$PKG_GDB_NATIVE_WANT_ED" ] then
PKG_GDB_SERVER_WANT_ED=y fi
# cross gdb to run on the build machine if [ -n "$PKG_GDB_CROSS_WANT_ED" ] then BD=cross-gdb rm -rf $BD mkdir -p $BD cd $BD export PATH=$UNSPOOF_PATH
export ac_cv_header_stdc=yes bash_cv_have_mbstate_t=yes \ ac_cv_header_nlist_h=no ac_cv_libexpat=no ../configure --prefix=/usr --target=$CFGHOST --mandir=/usr/share/man make cp gdb/gdb $TOP/bin/gdb
cd - fi
# from now build stuff to go into the rpm package export PATH=$ORIG_PATH
# gdbserver to run on the target if [ -n "$PKG_GDB_SERVER_WANT_ED" ] then cd gdb/gdbserver
./configure --prefix=/usr --host=$CFGHOST --mandir=/usr/share/man make cd - fi
# full gdb to run on the target if [ -n "$PKG_GDB_NATIVE_WANT_ED" ] then export CPP="$BUILDCPP"
export CC_FOR_BUILD="$BUILDCC" export ac_cv_header_stdc=yes bash_cv_have_mbstate_t=yes \ ac_cv_header_nlist_h=no CC=gcc AR=ar \ ./configure --prefix=/usr --host=$OPT_CFGHOST --build=i686-pc-linux-gnu --mandir=/usr/share/man
# don't build gdbserver perl -pi.orig -e 's,(x\$build_gdbserver),$1_no_thanks,' gdb/configure make fi