How to build gdb and gdbserver

Kai Ruottu
Thu Jun 21 03:24:00 GMT 2001

Peter Barada wrote:
> cd build-gdb
> ./gdb-5.0/configure --target=powerpc-linux --prefix=/usr/local/cross-linux-tools
> make all install
> ./gdb-5.0/configure --host=powerpc-linux --prefix=/usr/local/cross-linux-tools

 The default for the '--target=' is the build system, just as for the '--host=',
so using something else for them needs telling them. The complete case like :

  --build=i686-linux --host=powerpc-linux --target=powerpc-linux

is always preferred, but configure can solve the '--build=' (it cannot be
else, only the build system)

> cd gdb/gdbserver
> make all
> And in this directory i should have a gdbserver, right?

 Crossing fingers and wishing the best it should...

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list