I have Beagle bone running Linux.On the Host system I am using cross gdb (arm gdb) to debug kernel and kernel modules.
In my kernel build directory,there is no symlink(vmlinux-gdb.py) pointing to /build_directory/scripts/gdb/vmlinux-gdb.py. But the vmlinux-gdb.py is present in build_directory/scripts/gdb/vmlinux-gdb.py.
So i have directly given path of vmlinux-gdb.py in /root/.gdbinit file as follows
add-auto-load-safe-path build_directory/scripts/gdb/
I am able connect to target using GDB over serial port and the KGDB breakpoint hits on target.But the GDB scripts commands are not recognised.
If i run "apropos lx" on gdb prompt on host, there is no output.
If i run "lx-symbols" on gdb prompt on host, the output is undefined symbol "lx-symbol".
The setup has following configuration :
CONFIG_GDB_SCRIPTS=y set in /boot/config file on target hardware.
Target kernel version : 5.10.120
Host kernel version : 5.11.0
Cross GDB version on host : 7.10
Any inputs on how this can be resolved.