cross compile gdb

Dan Kegel dkegel@ixiacom.com
Wed Nov 12 20:04:00 GMT 2003


Ming Zhang wrote:
> Anybody use the cross compiler generated by crosstool to compile gdb 5.3
> or 6.0 before?
> 
> I do:
> 
> export CC=/foo/..../arm-linux-gnu-gcc
> mkdir gdb-build
> cd gdb-build
> ../gdb-5.3/configure --target=arm-linux-gnu --prefix=/foo
> 
> then come to the problem that term library not found. I googled but can
> not find sth useful. 

You need to cross-build and install ncurses.
In theory, giving --builduserland when you install crosstool will do this...

> if possible, can sb give me a link about hwo to cross compile the gdb?

Only hitch with gdb-6.0 is you need to set an environment variable, I hear:
http://sources.redhat.com/ml/gdb/2003-08/msg00327.html

I posted some notes about doing it with gdb-5.3 earlier, but 6.0 is
probably the way to go now.

- Dan


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



More information about the crossgcc mailing list