This is a welcome usability enhancement to GDB with the kernel, but the situation isn't as dire today as the article makes it sound.
People debug loadable kernel modules with GDB all the time by using the -m option on 'insmod' to get that section location information. kgdb.sourceforge.net has a program that does the insmod and generates a convenient gdb script you can invoke to do the appropriate add-symbol-file.
The drawback is that you have to plan in advance -- and have to do a special load of the module. With Jon's work, the information is always there.
Well, not exactly. You still have to plan ahead and look at the sysfs file before gdb gets entered and the system stops.
With current Kgdb (kgdb.sourceforge.net), There's a mechanism where Gdb automatically knows where the modules are loaded. But something about it makes Gdb annoyingly slow, so I abandonned it and can't say much about it.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds