how to debug a module when kernel-2.2.12 running?

lhyang lhyang at cti.com.cn
Tue Jul 25 20:00:24 PDT 2000


Hi Keith,
    At present, I am programming a module about device driver, and I want to debug the module,
after using two famous debugger tools, I find that they all can debug kernel code, but no method to debug a module, 
or maybe what I said makes a mistake, in a word, I expect some help.

below is the two tools
1.kdb-v0.6 from oss.sgi.com
no method to set breakpoint to a module, though press Pause key to run kdb, so when running insmod xxx.o, I can't use it.

2. IKD(Intergrated Kernel Debugger), 2.2.12-ikd from e-mind.com
by running xkgdb in linux/scripts directory, create xkdebug devive file and module and kgdb process,
but it can't load kernel symbols and module symbols simultaneously, though can set breakpoint to module,
but can't debug the module at load module by insmod xxx.o.

maybe what I have done exists error, any opinion is appreciated.

thanks in advance.

 BRs,

                -Jim






More information about the kdb mailing list