Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 2009 12:40:08 +0530
From:      "Pranav Peshwe" <pranavpeshwe@gmail.com>
To:        shilp.kamal@yahoo.com
Cc:        freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: FreeBSD kernel Debugging tools for Virtual Memory Module
Message-ID:  <cdfd7d6d0901012310k7299a564ifeb41af432bebc9d@mail.gmail.com>
In-Reply-To: <387210.21917.qm@web45407.mail.sp1.yahoo.com>
References:  <387210.21917.qm@web45407.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 2, 2009 at 7:57 AM, Kamlesh Patel <shilp.kamal@yahoo.com> wrote:

> Hi Friends, Happy New Year,
>
> I am working on Virtual Memory parts of FreeBSD OS. My Problem is, whenever
> i modify little code of vmpage.c file i need to build the whole kernel to
> check the modification and i even am not able to debug the kernel code.
>
> Could anyone please inform me kernel Debugging tools for FreeBSD OS?
>


Hi,
   ddb and kgdb are two useful and often indispensable tools for kernel
debugging on FBSD. ddb won't allow you source level debugging, kgdb will,
but you'll need an extra machine. Dtrace from the Solaris world is being
ported to FBSD, that too can be useful at times.
You can find more information in the FBSD developers handbook here -
http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html

AFAIK, if you are modifying the kernel source directly  there is no option
but to recompile all the changed and dependent files. I do not know whether
it works out of the box, but you can try using ccache to speed up the
compilation.

HTH.

Best regards,
Pranav
http://pranavsbrain.peshwe.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdfd7d6d0901012310k7299a564ifeb41af432bebc9d>