From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 07:09:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D71E516A419 for ; Mon, 3 Sep 2007 07:09:50 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8DAEA13C458 for ; Mon, 3 Sep 2007 07:09:50 +0000 (UTC) (envelope-from grog@lemis.com) Received: from dereel.lemis.com (ozlabs.org [203.10.76.45]) by ozlabs.org (Postfix) with ESMTP id 2C0FBDDE3C; Mon, 3 Sep 2007 17:09:35 +1000 (EST) Received: by dereel.lemis.com (Postfix, from userid 1004) id CF6CD1A98D7; Mon, 3 Sep 2007 17:09:52 +1000 (EST) Date: Mon, 3 Sep 2007 17:09:52 +1000 From: Greg 'groggy' Lehey To: "Andrey V. Elsukov" Message-ID: <20070903070952.GB32893@dereel.lemis.com> References: <46DBB0AE.90106@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IrhDeMKUP4DT/M7F" Content-Disposition: inline In-Reply-To: <46DBB0AE.90106@yandex.ru> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-3-5346-1370 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-hackers@freebsd.org Subject: Re: Remote GDB howto X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 07:09:50 -0000 --IrhDeMKUP4DT/M7F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 3 September 2007 at 10:58:54 +0400, Andrey V. Elsukov wrote: > Hi, > > I want to debug my kernel with modules through serial console. > I have two machines with 7.0-CURRENT. > What i do: > ... > > What i've missed? You're a bit sketchy on the details that I've omitted here. What happens between these two lines? > (kgdb) target remote /dev/cuad0 > (kgdb) add-symbol-file /path/to/local/copy/of/file You should have some communication with the remote machine between these two lines. Have you followed my tutorial? http://www.lemis.com/grog/Papers/Debug-tutorial/ Greg -- See complete headers for address and phone numbers. --IrhDeMKUP4DT/M7F Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFG27NAIubykFB6QiMRAqXcAJ9O61hfh/xh9oGdETaWBrtm7e/wwgCeNwoQ FRuKheHgfM2xEi3zr1Nh71g= =vTz0 -----END PGP SIGNATURE----- --IrhDeMKUP4DT/M7F--