A blog by Devendra Tewari
This is a quick post that shows how to enable gdb and/or gdbserver on the Raspberry Pi when using Buildroot.
Enable option Build packages with debugging symbols, under Build Options
Enable the following options under Toolchain
Select gdb and gdbserver (useful for remote debugging), under Target packages, “Debugging, profiling and benchmark”