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.