kdb
[Top] [All Lists]

how to debug a module when kernel-2.2.12 running?

To: "Keith Owens" <kaos@xxxxxxxxxxxxxxxxx>
Subject: how to debug a module when kernel-2.2.12 running?
From: "lhyang" <lhyang@xxxxxxxxxx>
Date: Wed, 26 Jul 2000 11:00:24 +0800
Cc: <kdb@xxxxxxxxxxx>
References: <6132.964562375@ocs3.ocs-net>
Sender: owner-kdb@xxxxxxxxxxx
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




<Prev in Thread] Current Thread [Next in Thread>