Skip to main content
By default, the build enables the GNU debugger (GDB). If GDB is not enabled, follow these steps on the Linux host computer to enable GDB:
  1. Go to the meta-qcom-distro/recipes-products/packagegroups directory and open the packagegroup-qcom-utilities.bb file.
  2. Modify the packagegroup-qcom-utilities.bb file to add gdb in the package list. Skip this step if the package name is already present in the package list.
  3. Ensure that the build incorporates the debug symbols.
    Or
    If the debug symbols aren’t enabled, compile all required executables or shared libraries with the -g compiler flag. To push debug symbols to the device, see Configure debug symbols.
  4. Recompile and flash the build on the device.
  5. To debug using GDB, run the following command on the device:
    Sample output:

GDB commands

The following table lists the commonly used GDB commands. Table: Common GDB commands For more information, see Linux manual page.