Date: Wed, 25 Feb 2004 11:22:36 +1030 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: sundeep.puliccott@wipro.com Cc: freebsd-questions@freebsd.org Subject: Re: Help on kernel debugger Message-ID: <20040225005236.GR87020@wantadilla.lemis.com> In-Reply-To: <7F396B9772328640B7593FA817EEEDADCC371E@blr-m3-msg.wipro.com> References: <7F396B9772328640B7593FA817EEEDADCC371E@blr-m3-msg.wipro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--xhZOS9k98klg1Kf3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 24 February 2004 at 11:23:40 +0530, sundeep.puliccott@wipro.com wrote: > > I need to use a kernel debugger on FreeBSD 4.8 to check if > my messages to the kernel have all the info required and if > Is being processed. I don't really understand what you mean here. > DDB is the debugger mentioned in the handbook. Will DDB help > Me debug the kernel on the target itself? That's one possibility. > All that I have read abt DDB is debugging from a remote box over a > serial line. No, that's gdb. > I have rebuilt my kernel with the options > > # Kernel debugger support > options DDB > options DDB_UNATTENDED A lot depends on exactly what you want to do. There's an man page gdb(4) in -CURRENT which will, to some extent, help you with remote debugging. Note that the macros mentioned are in 4.8, but they're in a different form in the directory /usr/src/sys/modules/vinum. You'll have to play around with them to get them to work. Also, 4.8 does not support debugging over firewire. If you have specific questions, I suggest you follow up on FreeBSD-hackers@FreeBSD.org. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --xhZOS9k98klg1Kf3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFAO/HUIubykFB6QiMRAsQ1AJ9pdgOhtkqMdF1ZS/E9z+6RrzaH/wCfW8zd eFuZ/iKce6I/J+DHfssWSj4= =Zqof -----END PGP SIGNATURE----- --xhZOS9k98klg1Kf3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040225005236.GR87020>