From owner-freebsd-current Sat Dec 27 19:29:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA11956 for current-outgoing; Sat, 27 Dec 1997 19:29:03 -0800 (PST) (envelope-from owner-freebsd-current) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA11890 for ; Sat, 27 Dec 1997 19:26:52 -0800 (PST) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id NAA08055; Sun, 28 Dec 1997 13:54:44 +1030 (CST) (envelope-from grog) Message-ID: <19971228135444.20861@lemis.com> Date: Sun, 28 Dec 1997 13:54:44 +1030 From: Greg Lehey To: Bruce Evans Cc: freebsd-current@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Subject: Re: Remote gdb (was: no boot: config -g and options DDB) References: <199712280313.OAA03628@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199712280313.OAA03628@godzilla.zeta.org.au>; from Bruce Evans on Sun, Dec 28, 1997 at 02:13:45PM +1100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, Dec 28, 1997 at 02:13:45PM +1100, Bruce Evans wrote: >>> Just like fopen() doesn't set the speed. It knows nothing of >>> devices. >> >> Yes, but fwrite() doesn't go on and talk to the device registers. ddb > > Sure it does, if the output stream is a device. No, it calls write(2) to do it for it. >> ddb doesn't use the device driver. It talks directly to the device >> with functions like: >> >> void >> siocnputc(dev, c) > > These functions are part of the device driver. OK, but they're only *part* of the device driver, and ddb calls them directly without first setting the control registers. I'm making progress. It seems that I *do* need COMCONSOLE, and I need to set flag 0x10 for the serial port that I want to be the console, but I'm still not getting any output on the COMCONSOLE. I'll probably work it out, but if anybody there can help, I'd be grateful. Greg