Like binutils and GCC, GDB is built in a separate build
directory. It is configured to create just a cross-platform debugger
for OpenRISC 1000 programs compiled with
or32-uclinux-gcc.
mkdir builddir-gdb
cd builddir-gdb
../gdb-6.8/configure --target=or32-uclinux --prefix=/opt/or32