If you don’t know what’s buildroot ?, please redirect to https://www.uclibc.org/
How to install buildroot
root@lab:~# uname -a
Linux lab 4.3.0-kali1-686-pae #1 SMP Debian 4.3.5-1kali1 (2016-02-11) i686 GNU/Linux
root@lab:~/Downloads# wget -c https://buildroot.uclibc.org/downloads/buildroot-snapshot.tar.bz2
root@lab:~/Downloads/buildroot# make menuconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
root@lab:~/Downloads/buildroot# make
How to compile MIPSEL gdb
root@lab:~/Downloads# tar xvf gdb-7.11.tar.gz
root@lab:~/Downloads# cd gdb-7.11/
root@lab:~/Downloads/gdb-7.11# export PATH=$PATH:/root/Downloads/buildroot/output/host/usr/bin
root@lab:~/Downloads/gdb-7.11# ./configure --target=mipsel-linux --host=mipsel-linux --prefix=/root/Downloads/gdb-7.11/gdb_output --program-prefix=mips CC=/root/Downloads/buildroot/output/host/usr/bin/mipsel-linux-gcc CFLAGS="-g -O2 -static"
- mips compile
$ ./configure --target