1, official website download gdb-7.8.tar.gz
- Http://ftp.gnu.org/gnu/gdb
2. Decompression
tar zxf gdb-7.8. tar. gz
Refer to Gdb-7.8/gdb/gdbserver/readme, which is configured as described below.
3. Create a new empty directory
mkdir S-clean-gdb
$ CD S-clean-gdb
4. Generate Configuration file
s-clean-gdb$ Export cc=arm-fsl-linux-gnueabi-gcc
s-clean-gdb$./... /gdb-7.8/gdb/gdbserver/configure--build= $MACHTYPE--target=arm-fsl-linux-gnueabi--host=arm-fsl-linux-gnueabi
Description:--build Specifies the type of host that is compiled,--target means that the target platform is the Linux kernel running on the ARM architecture,--host specifies the environment in which the generated program runs
I use the tool chain under:/opt/arm-cross/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/
5. Compiling
Make
s-clean-gdb$ ls
6. Verification
File1for2.6. , not stripped
Linux compiled Freescale Arm's GDB server