Target gdb

Khem Raj khem@mvista.com
Fri Feb 3 19:40:00 GMT 2006


Earl Olsen said the following on 02/03/2006 07:38 AM:
>  
>
> Using crosstools, I've build a powerpc cross compiler, glibc, gdbserver,
> etc.
> Now I try to build gdb for the target:
>
> # Build target termcap libary (target gdb requires it)
>
>     cd $BUILD_TMP_DIR/build-termcap
>     CC=$TARGET-gcc $BUILD_TMP_DIR/$TERMCAP_DIR/configure \
>         --host=$TARGET --prefix=$PREFIX/$TARGET
>     make
>     make oldincludedir="" install
>
> # Build target gdb (i.e. gdb that runs on target)
>
>     cd $BUILD_TMP_DIR/build-gdb
>     CC=$TARGET-gcc $BUILD_TMP_DIR/$GDB_DIR/configure \
>         --host=$TARGET --prefix=$PREFIX/$TARGET
>     make BUILD_SUBDIR=""
>     make install
>
>   
you might want to add --build=i686-pc-linux-gnu or any other host on 
which you are building the gdb.

 export gdb_cv_printf_has_long_long=yes
 gdb_cv_printf_has_long_long=yes
export gdb_cv_printf_has_long_double=yes
gdb_cv_printf_has_long_double=yes
export gdb_cv_scanf_has_long_double=yes
gdb_cv_scanf_has_long_double=yes
export gdb_cv_prfpregset_t_broken=no
gdb_cv_prfpregset_t_broken=no
export bash_cv_have_mbstate_t=yes
bash_cv_have_mbstate_t=yes

CC=<cross-prefix>-gcc 
export CC
AS=<cross-prefix>-as
export AS
LD=<cross-prefix>-ld
export LD
AR=<cross-prefix>-ar
export AR
RANLIB=<cross-prefix>-ranlib
export RANLIB
CPP=<cross-prefix>-cpp 
export CPP
CXX=<cross-prefix-g++ 
export CXX
NM=<cross-prefix>-nm
export NM

then run your configure command and see if it helps.


Cheers!
-Khem


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org



More information about the crossgcc mailing list