This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with solaris testing


> Date: Tue, 5 Aug 2008 10:03:16 -0400
> From: Daniel Jacobowitz <drow@false.org>
> 
> On Tue, Aug 05, 2008 at 02:46:00PM +0100, Pedro Alves wrote:
> > I just found a workaround.  Overriding the stty settings expect does on
> > the pty used in spawn's,
> > 
> >  proc default_gdb_start { } {
> >   ...
> >   global stty_init
> >   set stty_init "<the stty -a settings of my terminal>"
> > 
> >   ...
> >  }
> > 
> > ... makes the issue go away.
> 
> Could you binary search to find the stty option that's a problem?  The
> default in expect is "stty sane"; the Linux man page for stty defines
> what "sane" is equivalent to, but you should check the OpenSolaris man
> page to see what it says.  Or run stty sane / stty -a in a pty.

On Solaris 10, I get:


$ stty
speed 38400 baud; 
rows = 24; columns = 80; ypixels = 316; xpixels = 484;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = <undef>; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext 
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc 
ixon -ixany -ixoff -imaxbel 
isig icanon -xcase echo echoe echok -echonl -noflsh 
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten 
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3 


and "stty sane" changes that to:


speed 38400 baud; 
rows = 24; columns = 80; ypixels = 316; xpixels = 484;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = <undef>; werase = ^w; lnext = ^v;
parenb -parodd cs7 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext 
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc 
ixon -ixany -ixoff imaxbel 
isig icanon -xcase echo echoe echok -echonl -noflsh 
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten 
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel 


which seems to be sane enough for me.  But the OpenSolaris defaults that Pedro showed don't seem sane to me.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]