From owner-freebsd-current@FreeBSD.ORG Thu Feb 17 00:01:34 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DD3F16A4CE for ; Thu, 17 Feb 2005 00:01:34 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 790E743D39 for ; Thu, 17 Feb 2005 00:01:32 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id EF95F8565C; Thu, 17 Feb 2005 10:31:29 +1030 (CST) Date: Thu, 17 Feb 2005 10:31:29 +1030 From: Greg 'groggy' Lehey To: Gerald Heinig Message-ID: <20050217000129.GD69640@wantadilla.lemis.com> References: <420C76C3.202@syskonnect.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OesXTvlsfeLEOFyS" Content-Disposition: inline In-Reply-To: <420C76C3.202@syskonnect.de> User-Agent: Mutt/1.4.2.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-current@freebsd.org Subject: Re: gdb over Firewire X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 00:01:34 -0000 --OesXTvlsfeLEOFyS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Friday, 11 February 2005 at 10:11:31 +0100, Gerald Heinig wrote: > Hello Current'ers, > > I'm trying to get two-machine kernel debugging over Firewire working, > unfortunately without much luck so far. dconschat over Firewire works > fine, but gdb won't attach, complaining about get_tty_state failed, > among other things. > Is kernel gdb over Firewire a -current-only feature? Sorry for the slow reply; I've been busy. No, it's not a current-only feature. It used to work, but I've had a lot of difficulty since the introduction of the new gdb framework. Try this: $ sysctl debug.kdb debug.kdb.available: ddb=20 debug.kdb.current: ddb debug.kdb.enter: 0 debug.kdb.stop_cpus: 1 That's what I get, and it indicates that I don't have gdb capability. If that's what you get, try building a kernel with firewire support built-in (as opposed to the (recommended) method of loading the firewire klds later). The background here is the hypothesis that the kernel checks for debug back-ends at boot time, and not later, so if you load the firewire klds later, it won't be registered. Note that this is a hypothesis. If you try this, please let us know what happens. Greg -- See complete headers for address and phone numbers. --OesXTvlsfeLEOFyS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCE97ZIubykFB6QiMRAq6MAJ9Q1f2hcpXJRPPd4Jjj/KtZSvgODwCgrtmn 5zEJwa9uhLf6gje6elC7pdU= =/RsL -----END PGP SIGNATURE----- --OesXTvlsfeLEOFyS--