Getting ready
In the process of debugging embedded Linux systems, we can use the same toolbox as standard Linux systems. One of these tools enables applications to generate a memory core dump upon crashing. This assumes that we have enough disk space to store the application's entire memory map, and that writing to disk is quick enough that it will not drag the system to a halt.
Once the memory core dump is generated, we use the host's GDB to analyze the core dump. GDB needs to have debug information available. To install debug information, we use the dbg-pkgs feature. By default, this installs the debug information of a package in a .debug directory in the same location as the executable itself. To add debug information for all packages ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access