5.17.3.1. Build the Cross-GDB Package

A suitable GDB cross-binary is required that runs on your host computer but also knows about the the ABI of the remote target. You can get this binary from the Cross-Development Toolchain. Here is an example where the toolchain has been installed in the default directory /opt/poky/1.6.1:

     /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb
                    

where arm is the target architecture and linux-gnueabi is the target ABI.

Alternatively, you can use BitBake to build the gdb-cross binary. Here is an example:

     $ bitbake gdb-cross
                    

Once the binary is built, you can find it here:

     tmp/sysroots/<host-arch>/usr/bin/<target-platform>/<target-abi>-gdb