From owner-freebsd-questions@FreeBSD.ORG Fri Jan 2 07:42:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DB40106564A for ; Fri, 2 Jan 2009 07:42:49 +0000 (UTC) (envelope-from pranavpeshwe@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id C89C58FC18 for ; Fri, 2 Jan 2009 07:42:48 +0000 (UTC) (envelope-from pranavpeshwe@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so2845682yxb.13 for ; Thu, 01 Jan 2009 23:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Yc43JoJOvgW6j8ci31ieDITdqkNqKFCNGhuJLqy633s=; b=fZuAXiK4YhJXjl6bu4lHskWNJ4io+IYGcs4xlQGjsT+v5T1j4gdsVbPpj0vKEuvxkH bn6N1HiWyEHyiabu3PSTcdNza/wRh0DgYpN4tdi6zrPqGyZoAgJVyVthuRpurXZ49IFZ d5ToC4uczb7ThVakP1Vd45D9b7/tdUufwVQyA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=Rszi00STf+f9Qc1hpXc3CjToO/6v6R78fwg8V/aPemlHS1t66nUi4vlszDr4vIl4r5 yc8xcoKCvbJrkYYAqaf+wI3aHcF69nrGMugLyirHqDlqfsOslW88glXS9bdiXgxU3ii1 vvmp7YILejAti9WWPRplHHtRVzIH4mdENv7OA= Received: by 10.151.150.13 with SMTP id c13mr5553166ybo.243.1230880208246; Thu, 01 Jan 2009 23:10:08 -0800 (PST) Received: by 10.151.121.2 with HTTP; Thu, 1 Jan 2009 23:10:08 -0800 (PST) Message-ID: Date: Fri, 2 Jan 2009 12:40:08 +0530 From: "Pranav Peshwe" To: shilp.kamal@yahoo.com In-Reply-To: <387210.21917.qm@web45407.mail.sp1.yahoo.com> MIME-Version: 1.0 References: <387210.21917.qm@web45407.mail.sp1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD kernel Debugging tools for Virtual Memory Module X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 07:42:49 -0000 On Fri, Jan 2, 2009 at 7:57 AM, Kamlesh Patel 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