Chapter 8

Debugging Embedded Software

If debugging is the process of removing bugs, then programming must be the process of putting them in.

Edsger W. Dijkstra

In Chapter 6, you saw how Eclipse integrates very nicely with the Gnu Debugger, GDB. In this chapter, we’ll look at additional features of GDB and explore how to use GDB on our target board. We’ll also consider a simple approach to high-level simulation that can be useful in the early stages of development.

Remote Debugging with Eclipse

In a typical desktop environment, the target program runs on the same machine as the debugger. But in our embedded environment Eclipse with GDB runs on the host workstation and the program being debugged runs on the ARM target. You can think of GDB as having ...

Get Linux for Embedded and Real-time Applications, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.