In the previous chapter, we explored the use of GDB for debugging kernel code and code resident in Flash, such as bootloader code. In this chapter, we continue our coverage of GDB for debugging application code in user space. We extend our coverage of remote debugging and the tools and techniques used for this peculiar debugging environment.
We already explored several important debugging tools in Chapter 13, “Development Tools.”
ltrace can be used to observe and characterize a process’s behavior and often isolate problems.
dmalloc can help isolate memory leaks and profile memory usage.
top are both useful for examining the state of processes. These relatively small ...