The GNU debugger allows for C/C++ debugging similar to an IDE based debugger. It allows setting of breakpoints, single stepping, stepping over functions, and multiple hit counts on breakpoints. For AI Engine kernel development the x86 simulator enables single step debugging of kernel code using GDB.
The target
argument for the AI Engine compiler must be set to x86sim
to use GDB.
v++ -c --mode aie --target=x86sim graph.cpp