下载gdb-5.2.1。进行编译。如果采用gdb-6.6,在编译gdbserver时,会出现要求编译器要有libthread_db.a.
#tar xjvf gdb-5.2.1.tar.bz2
#cd ./gdb-5.2.1/gdb/gdbserver
#chmod +x configure
#CC=arm-softfloat-linux-gcc ./configure --host=arm-linux --prefix=/...
#vi Makefile //修改Makefile
65 CC-LD = ${CC} -static
#make
#make install
#tar xjvf gdb-5.2.1.tar.bz2
#cd ./gdb-5.2.1/gdb/gdbserver
#chmod +x configure
#CC=arm-softfloat-linux-gcc ./configure --host=arm-linux --prefix=/...
#vi Makefile //修改Makefile
65 CC-LD = ${CC} -static
#make
#make install