From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 05:14:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AC8C1065689 for ; Thu, 9 Oct 2008 05:14:15 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id 044CE8FC14 for ; Thu, 9 Oct 2008 05:14:14 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA12.westchester.pa.mail.comcast.net ([76.96.62.44]) by QMTA03.westchester.pa.mail.comcast.net with comcast id QV8R1a0020xGWP853VEEGq; Thu, 09 Oct 2008 05:14:14 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA12.westchester.pa.mail.comcast.net with comcast id QVEC1a0072P6wsM3YVEDP9; Thu, 09 Oct 2008 05:14:14 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=bkFWSCt2OigFfYWj3NgA:9 a=EmMmlL9NvhBrx5HZORe9Xg987AcA:4 a=EoioJ0NPDVgA:10 a=9z6DURnkIoAA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id C7B9EC9419; Wed, 8 Oct 2008 22:14:12 -0700 (PDT) Date: Wed, 8 Oct 2008 22:14:12 -0700 From: Jeremy Chadwick To: alan yang Message-ID: <20081009051412.GA95086@icarus.home.lan> References: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> <48EA9E95.80105@FreeBSD.org> <290865fd0810061712sfdf5a0p4d3954773ee27a3d@mail.gmail.com> <290865fd0810071053k6da13d96j391ade1a30599fa1@mail.gmail.com> <48EBA6F2.2090606@elischer.org> <290865fd0810082143l46796079mfe2c6adeed4656b0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <290865fd0810082143l46796079mfe2c6adeed4656b0@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Julian Elischer , freebsd-questions@freebsd.org Subject: Re: kgdb debugging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 05:14:15 -0000 On Wed, Oct 08, 2008 at 09:43:38PM -0700, alan yang wrote: > thank you all, device.hints solved it! > > On Tue, Oct 7, 2008 at 11:14 AM, Julian Elischer wrote: > > alan yang wrote: > >> > >> Could people shed some light how to get remote debugging going, must > >> be something that i overlooked, really appreciate. > >> > >> Two FreeBSD7 systems, target and development, connected with null > >> modem cable on each's COM1. > >> > >> step 1) > >> - rebuild kernel with following options: > >> options DDB > >> options KDB > >> options GDB > >> > >> makeoptions DEBUG=-g > > > > add hints.dev.uart.0.flags=0xc0 > > (or whatever it is) (see man uart or man sio) > > to /boot/device.hints This is a bad recommendation. *DO NOT* modify device.hints!!! You can override device.hints entries, or add your own, by using loader.conf. Example, taken from our loader.conf on production systems: # There is no COM2 on this system. hint.sio.1.disabled="1" Thus, in your case, this should suffice (note "hint", not "hints" like the above paragraph says): hint.dev.uart.0.flags="0xc0" -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |