GDB ported to the Development Board

Source: Internet
Author: User

When running programs on the developer board, you sometimes need to debug to migrate GDB to the Development Board.

First download gdb:http://ftp.gnu.org/gnu/gdb/, I choose the latest gdb-7.11, download after the decompression, the next is configured and compiled

./configure--HOST=ARM-LINUX-GNUEABIHF--prefix=/home/xx

If it's a 64-bit system,--HOST=AARCH64-LINUX-GNU

Make

Make install

Note--host to and Development Board on the same, the Development Board has any crossover tool, then what, some arm-linux, otherwise there will be no compiler errors found.

--prefix is the directory to install, and the makefile file is generated when the configuration is successful.

The warning: ' Makeinfo ' is missing on your system may appear when make install, indicating less texinfo (Texinfo contains makeinfo)

Perform the sudo apt-get install Texinfo, and then install it.

When successful, the bin, include, and Lib directories will be generated under the installation directory, and the GDB and GDB server in the bin directory will be copied to the Development Board for use.


See some blogs need to install Libcurse, the method is consistent with the installation GDB, because I have this library on the Development Board, no porting.

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.