From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 16:52:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 505F416A4CE for ; Tue, 24 Feb 2004 16:52:42 -0800 (PST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE6FE43D2D for ; Tue, 24 Feb 2004 16:52:41 -0800 (PST) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id EB8B32BD45 for ; Wed, 25 Feb 2004 11:52:38 +1100 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id ABD305121E; Wed, 25 Feb 2004 11:22:36 +1030 (CST) Date: Wed, 25 Feb 2004 11:22:36 +1030 From: Greg 'groggy' Lehey To: sundeep.puliccott@wipro.com Message-ID: <20040225005236.GR87020@wantadilla.lemis.com> References: <7F396B9772328640B7593FA817EEEDADCC371E@blr-m3-msg.wipro.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xhZOS9k98klg1Kf3" Content-Disposition: inline In-Reply-To: <7F396B9772328640B7593FA817EEEDADCC371E@blr-m3-msg.wipro.com> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: Help on kernel debugger X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 00:52:42 -0000 --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--