GDB: lx-symbols undefined command
You have to get the latest kernel sources (may be 4.0-rc4) or backport the patch. Basically see if you have script/gdb/
directory like this in your kernel sources. Because that is where you get these scripts.
Then you follow the steps mentioned in https://www.kernel.org/doc/Documentation/dev-tools/gdb-kernel-debugging.rst