This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Help with solaris testing
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: pedro at codesourcery dot com, gdb at sourceware dot org, mark dot kettenis at xs4all dot nl, brobecker at adacore dot com
- Date: Tue, 5 Aug 2008 16:29:34 +0200 (CEST)
- Subject: Re: Help with solaris testing
- References: <200807291558.22228.pedro@codesourcery.com> <200807291539.m6TFdFAd007825@brahms.sibelius.xs4all.nl> <200808051446.01880.pedro@codesourcery.com> <20080805140316.GA23268@caradoc.them.org>
> 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.