From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20888 invoked by alias); 5 Aug 2008 14:33:17 -0000 Received: (qmail 20722 invoked by uid 22791); 5 Aug 2008 14:33:16 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Aug 2008 14:32:39 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id m75ETY7p027998; Tue, 5 Aug 2008 16:29:34 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id m75ETYoJ001852; Tue, 5 Aug 2008 16:29:34 +0200 (CEST) Date: Tue, 05 Aug 2008 14:33:00 -0000 Message-Id: <200808051429.m75ETYoJ001852@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: pedro@codesourcery.com, gdb@sourceware.org, mark.kettenis@xs4all.nl, brobecker@adacore.com In-reply-to: <20080805140316.GA23268@caradoc.them.org> (message from Daniel Jacobowitz on Tue, 5 Aug 2008 10:03:16 -0400) 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> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00073.txt.bz2 > Date: Tue, 5 Aug 2008 10:03:16 -0400 > From: Daniel Jacobowitz > > 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 "" > > > > ... > > } > > > > ... 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 = ; eol2 = ; swtch = ; start = ^q; stop = ^s; susp = ^z; dsusp = ^y; rprnt = ^r; flush = ; 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 = ; eol2 = ; swtch = ; start = ^q; stop = ^s; susp = ^z; dsusp = ^y; rprnt = ^r; flush = ; 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.