I am following the guide below: https://www.kernel.org/doc/Documentation/gdb-kernel-debugging.txt
When I try to load the module symbols using the command below: (gdb
add-auto-load-safe-path
Usage:
gdb -ex add-auto-load-safe-path /path/to/linux/kernel/source/root
Now the GDB scripts are automatically loaded, and lx-symbols is available.
lx-symbols
Here is a minimal fully automated Buildroot + QEMU example with detailed instructions.