Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 1996 18:24:59 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@FreeBSD.org, j@uriah.heep.sax.de
Cc:        koshy@india.hp.com
Subject:   Re: ddb now requires sio
Message-ID:  <199609020824.SAA10477@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
As A JOSEPH KOSHY wrote:
> 
> `option DDB' now /requires/ sio0 to be present on the system.
> 
> In `.../conf/files.i386' we have:
> 
>     i386/i386/i386-gdbstub.c        optional        ddb
> 
> and `i386-gdbstub.c' calls many functions from the serial driver.

This should be easy to circumvent by #include'ing "sio.h", and
depending the gdb remote stuff from #if NSIO > 0.

i386-gdbstub.c should call cngetc() instead of siocngetc(), etc.
This probably doesn't work now because the console driver is so
primitive:

1) it does LF -> CRLF translations on output, and there is no way
   to stop this.

2) It only supports _one_ console device and that device can't be
   changed properly after it is decided at boot time.  This is OK
   for /dev/console but it leaves the driver `cn' functions for all
   devices other than the console inaccessible, and for debugging
   it's best if the physical device is different from the one used
   for the console.  The low level (driver) `cn' functions take a
   dev_t arg but all drivers ignore it, while the high level `cn'
   functions don't take a dev_t arg.

Bruce



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