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.
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 ...