VS2010 Debugging the Linux program method based on ARM __linux

Source: Internet
Author: User
VS2010 to debug Linux program method based on arm
To build such a debugging environment, is inadvertently mentioned visulgdb this plug-in, and then search to its official website, found that there is a raspberry based on the document. So, just want to use the Development Board also run Linux system, can also learn from such debugging means. Although the two systems are still different, but think of such debugging means, after all, than the command line debugging, or by print debugging convenient too much too much, so take time to try some. After all, if you use VS2010 to debug the Linux code on the arm platform, the ease of scheduling is self-evident.

Probably needed tools or conditions: VS2010 visualgdb ubuntu (I use 12.04) Arm board piece (am335x) probably describe the steps

The first is to install visualgdb this plugin, detailed steps to refer to the official website;
Ubuntu must have a cross compilation tool chain;
Main work on the Development Board:
1, support SSH connection: This requires a transplant, mainly including ZLIB,OPENSSL,OPENSSH, in accordance with this sequence of cross compilation, generated related files, copied to the corresponding directory of the Development Board. This part, a lot of information on the network can be consulted.
2, Gdbserver this is also necessary.

Debug process:
VS. Build the project, refer to the official website of Visualgdb, and describe it more clearly than I described.

Image above:

>

(SPI does not use the standard SPI drive method, but uses the mmap way, is the speed, the blind test is compared with the traditional SPI drive, the speed is 10 times times faster appearance ...)

See no, you can single step debugging, the original debugging means, is on the right side of the print register content ...

Note:
Not necessarily all run Linux system board can be so easy to set up debugging environment, I in 6410 of the board without debugging success, the project always error.

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.