kdb
[Top] [All Lists]

Re: about how to debug module?

To: "lhyang" <lhyang@xxxxxxxxxx>
Subject: Re: about how to debug module?
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jul 2000 07:59:35 +1000
Cc: kdb@xxxxxxxxxxx
In-reply-to: Your message of "Tue, 25 Jul 2000 21:20:41 +0800." <002701bff63b$223a1b40$330279c8@pc51>
Sender: owner-kdb@xxxxxxxxxxx
On Tue, 25 Jul 2000 21:20:41 +0800, 
"lhyang" <lhyang@xxxxxxxxxx> wrote:
>    I have succeeded in installing kdb,then I want to debug a module,
>but I can't set breakpoint in module's source code,i.e. when I press Pause 
>key, run in 
>kdb>
>
>I can't load my module to set breakpoint, and  I can't run insmod xxx.o too,
>who can help me to solve the problem.

Please do *not* send messages to mailing lists in base64 encoding or
HTML, it makes it difficult to reply.  You might find the option you
need under
  Tools
  Options
  Send
  set Mail send for Plain text

Which version of kdb have you installed and on which kernel?  kdb v0.x
for 2.2 kernels has limited support for symbols in modules, kdb v1.3
for 2.[34] kernels is much better.  There are no plans to upgrade kdb
v0.x for 2.2 kernels, all our work is on 2.[34] kernels.

In either case you have to load the module before entering kdb.  The
kernel is stopped when kdb is in control.  You cannot do any disk I/O
while kdb is running so you cannot load any modules.


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