Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 1997 13:54:44 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        freebsd-current@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu
Subject:   Re: Remote gdb (was: no boot: config -g and options DDB)
Message-ID:  <19971228135444.20861@lemis.com>
In-Reply-To: <199712280313.OAA03628@godzilla.zeta.org.au>; from Bruce Evans on Sun, Dec 28, 1997 at 02:13:45PM %2B1100
References:  <199712280313.OAA03628@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971228135444.20861>