kdb
[Top] [All Lists]

Re: begginer's question

To: Gavinux <gavinux@xxxxxxxxx>
Subject: Re: begginer's question
From: Jim Houston <jim.houston@xxxxxxxxxxx>
Date: 24 Feb 2005 09:48:51 -0500
Cc: kdb@xxxxxxxxxxx
In-reply-to: <20050224142936.25947.qmail@web50303.mail.yahoo.com>
Organization:
References: <20050224142936.25947.qmail@web50303.mail.yahoo.com>
Reply-to: jim.houston@xxxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
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.
<Prev in Thread] Current Thread [Next in Thread>