Debugging technology of embedded Linux reading notes

Source: Internet
Author: User

For complex Linux drivers and libraries such as HAL, you need to debug them using a variety of methods. For example, set breakpoints, step-tracking code, output debug values, and so on. Although there is no visual Studio, Delphi, Eclipse in the debugging aspect of the vision of the work, but to learn some of this technology is undoubtedly even more strange feet hand bright strong and stable Linux kernel modules for embedded Linux core modules, can be FA, It may be more complicated to debug the Chengzhuang and central repository. Because you need at least two machine development machines and target machines when you lose a lot of praise.

In Linux file systems,/proc is often used as a tool for data intersection =ee of kernel space and user space. The/proc file system behaves like a device file system C/dev). /proc is a virtual file system, which means that/proc is not a real file system, but a memory map. All read-write/PROC_ operations are read and write to memory, so reading and writing/proc file systems is much faster than reading/writing/dev file systems. As a result, the/proc file system can also serve as a tool for Linux to interact with user-space programs.

Linux kernel debugging has been considered by many people to be very difficult. , most people prefer to use the PRINTK function directly to output debug information, and are reluctant to use various commands-(GDB, Gdbserv~r,. KGDB, etc.) to debug. , because it's not going to change. More benefits. In addition to the traditional PRINTK function debugging technology, this chapter also introduces other debugging techniques. , these debugging techniques do not necessarily need to be used.

Debugging technology of embedded Linux reading notes

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.