From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 03:07:41 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 3E24C37B401; Sat, 19 Apr 2003 03:07:41 -0700 (PDT) Received: from demos.su (mx.demos.su [194.87.0.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 169EE43FAF; Sat, 19 Apr 2003 03:07:39 -0700 (PDT) (envelope-from mitya@fling-wing.demos.su) Received: from [194.87.5.69] (HELO fling-wing.demos.su) by demos.su (CommuniGate Pro SMTP 4.0.6/D4) with ESMTP-TLS id 67583290; Sat, 19 Apr 2003 14:07:37 +0400 Received: from fling-wing.demos.su (localhost [127.0.0.1]) by fling-wing.demos.su (8.12.9/8.12.6) with ESMTP id h3JA7aAu062513; Sat, 19 Apr 2003 14:07:36 +0400 (MSD) (envelope-from mitya@fling-wing.demos.su) Received: (from mitya@localhost) by fling-wing.demos.su (8.12.9/8.12.6/Submit) id h3JA7amr062512; Sat, 19 Apr 2003 14:07:36 +0400 (MSD) Date: Sat, 19 Apr 2003 14:07:36 +0400 From: Dmitry Sivachenko To: "Greg 'groggy' Lehey" Message-ID: <20030419100736.GA62154@fling-wing.demos.su> References: <20030418144830.GA52968@fling-wing.demos.su> <20030419035249.GI61510@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: <20030419035249.GI61510@wantadilla.lemis.com> WWW-Home-Page: http://mitya.pp.ru/ X-PGP-Key: http://mitya.pp.ru/mitya.asc User-Agent: Mutt/1.5.4i 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: Sat, 19 Apr 2003 10:07:41 -0000 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >=20 > 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. >=20 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? --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+oR/oEZSZYxPV34ARAoXlAJ95xLS+aggRoeSljyMb6H/dMCLTMACfX5pH QbRXORSChQqsjL6Zju5i8r8= =GzXD -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM--