Debuggering
Debuggering ....................................................................................................................................1
Debugging User Applications...........................................................................................................1
Overview...................................................................................................................................
1
Assumptions ............................................................................................................................2
Building the gdbserver application ...........................................................................................2
Debugging on the Target...........................................................................................................4
Command line debugging.........................................................................................................9
Going further.............................................................................................................................9
Debugging Multithreaded Applications............................................................................................9
Overview...................................................................................................................................
9
Assumptions ..........................................................................................................................10
Preliminaries ...........................................................................................................................10
Enable debuggable applications and libraries.........................................................................10
Building gdbserver..................................................................................................................12
Building the thread test application.........................................................................................13
Rebuilding the PetaLinux image.............................................................................................14
Debugging a multithreaded application ..................................................................................14
Going Further..........................................................................................................................19
Debugging User Applications
Overview
This document describes how to debug user applications under PetaLinux.
The GDB debugger (and Insight graphical interface) is available for
debugging applications on the MicroBlaze Linux target. To do so, it is
first necessary to build the gdbserver helper application. gdbserver runs
on the MicroBlaze, and acts as an interface between GDB running on the
host, and the target application.
The debug scenario is illustrated in Figure 1.