Subject: Re: Problems with nfsd on NetBSD 1.2.1/sparc
To: Frank van der Linden <frank@wins.uva.nl>
From: Brian Buhrow <buhrow@cats.ucsc.edu>
List: current-users
Date: 04/26/1997 09:24:03
	Hi Frank.  I'm trying to continue to track down this hanging problem
and am having a problem using gdb.  This problem has plagued me for a
while, and I just haven't figured it out.  If I telnet into a NetBSD box,
either Sparc or I386, and I run gdb, gdb somehow screws up my stty settings
such that I cannot type into the process.  If I exit gdb, using q^j, my
stty settings may or may not be restored to something usable.  
Does anyone have any ideas on what's going on here and how I might fix it?
(debugging and examination are dificult in the session in question.)
-thanks
-Brian

P.S.  The first script shows stty settings before and after invoking gdb.
The second shows stty settings on the pty running gdb from another window.
-thanks


Script started on Sat Apr 26 09:17:00 1997
omniphile# stty -a
speed 38400 baud; 11 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
        -extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
        stop = ^S; susp = ^N; time = 0; werase = ^W;
omniphile# gdb
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (sparc-netbsd), Copyright 1993 Free Software Foundation, Inc.
(gdb) 
(gdb) 
(gdb) q
omniphile# stty  -a
speed 38400 baud; 11 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
        -extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
        stop = ^S; susp = ^N; time = 0; werase = ^W;
omniphile# exit
omniphile# exit

Script done on Sat Apr 26 09:19:17 1997


Script started on Sat Apr 26 09:17:59 1997
omniphile# stty -a < /dev/ttyp0
speed 38400 baud; 11 rows; 80 columns;
lflags: -icanon -isig -iexten -echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
        extproc
iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff ixany imaxbel -ignbrk
        -brkint -inpck -ignpar -parmrk
oflags: -opost onlcr oxtabs
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
        stop = ^S; susp = ^N; time = 0; werase = ^W;
omniphile# exit
omniphile# exit

Script done on Sat Apr 26 09:18:43 1997