From owner-freebsd-questions@FreeBSD.ORG Sun Apr 20 21:08:20 2003 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 6631237B401 for ; Sun, 20 Apr 2003 21:08:20 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DCB543FCB for ; Sun, 20 Apr 2003 21:08:18 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 4430251A80; Mon, 21 Apr 2003 13:38:16 +0930 (CST) Date: Mon, 21 Apr 2003 13:38:16 +0930 From: Greg 'groggy' Lehey To: Dmitry Sivachenko Message-ID: <20030421040816.GJ79922@wantadilla.lemis.com> References: <20030418144830.GA52968@fling-wing.demos.su> <20030419035249.GI61510@wantadilla.lemis.com> <20030419100736.GA62154@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQAwcd5tHl0Qlnzi" Content-Disposition: inline In-Reply-To: <20030419100736.GA62154@fling-wing.demos.su> User-Agent: Mutt/1.4i 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: questions@FreeBSD.org Subject: Re: debugging kernel with remote gdb 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: Mon, 21 Apr 2003 04:08:20 -0000 --LQAwcd5tHl0Qlnzi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 19 April 2003 at 14:07:36 +0400, Dmitry Sivachenko wrote: > On Sat, Apr 19, 2003 at 01:22:49PM +0930, Greg 'groggy' Lehey wrote: >> On Friday, 18 April 2003 at 18:48:30 +0400, Dmitry Sivachenko wrote: >>> Hello! >>> >>> I have two machines: one IA32 running FreeBSD and the other SPARC >>> running Solaris. I want to debug FreeBSD kernel using remote gdb. >>> After reading developers handbook it is unclear whether it is >>> possible to use my SPARC for that purpose? >> >> Theoretically, yes. In practice, you'll need a version of gdb which >> understands the ia32 instruction set, and I suspect you'll have to >> build that yourself. You might get a more accurate answer on the >> sparc64 mailing list. >> > > Well, I built gdb to understand i386-freebsd target (using --target > option). The problem is that it seems stock gdb does not > understand '-k' option (for kernel debugging). > > May be I am missing something obvious? I don't think you need the -k option for serial debugging. It's only needed for processor dumps, and it's a FreeBSD extension, so you'd need to port the FreeBSD version of gdb. Try it and see. 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 See complete headers for address and phone numbers --LQAwcd5tHl0Qlnzi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+o26wIubykFB6QiMRAnHSAJ44X05gEL/N7aGCYuJbcoxdZKVlcgCfUbKF wrbPoOV8CQU7CbV8cmIpBzU= =RgSy -----END PGP SIGNATURE----- --LQAwcd5tHl0Qlnzi--