Working with GDB

C or C++ AEs can be debugged using GDB. As noted above, debugging should be performed on the host and not the SPU. The UDX test harness can be run on the host. For more details, refer to Using a Test Harness for Troubleshooting.

When compiling and linking a program to be used with GDB, debugging symbols (-g) must be included. There are three different ways to use GDB - AE enabled, spin, and attach - each of which is described in the following sections.