The x86 simulation features that works in the Vitis IDE and also works in the command line. The Vitis IDE provides a GUI-based debug support to control the flow by setting the breakpoints and viewing the intermediate values while executing. It is also possible to do the similar debugging for command line projects using the GDB capabilities. This section walks through different steps to debug the code using the GDB.
To start with, locate the necessary files to compile and run the simulation as a standalone, and then add the GDB capabilities step-by-step.
Before beginning, it is expected to set the environment variables as described in Introduction. Also, it is assumed that you have cloned the git repository.