On Thu, 2005-02-24 at 09:29, Gavinux wrote: > while, I can't find any information of how to debug a > module by using kdb. > Is it suitable for module debugging? How to load a > module and set a break point at init_module? > Is it a source level debugging tool?
Hi Gavinux, kbd is an assembly language level tool. If you want source level debug then you might be happier with gdb and the kgdb stub. kdb has support for modules. You load the module with the usual insmod or modprobe command. Loading the module makes its global symbols available in kdb. If you need to get control before the module executes you could hunt down the mod->init() call in sys_init_module() and put a breakpoint there. Jim Houston - Concurrent Computer Corp. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
