The GNU debugger allows for C/C++ debugging similar to an IDE-based debugger. The debugger 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.
You must set the target argument for the
AI Engine compiler to x86sim to use GDB.
v++ -c --mode aie --target=x86sim graph.cpp