Linux compiled Freescale Arm's GDB server

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.