Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: pedro@codesourcery.com, gdb@sourceware.org,
	mark.kettenis@xs4all.nl,         brobecker@adacore.com
Subject: Re: Help with solaris testing
Date: Tue, 05 Aug 2008 14:33:00 -0000	[thread overview]
Message-ID: <200808051429.m75ETYoJ001852@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <20080805140316.GA23268@caradoc.them.org> (message from Daniel 	Jacobowitz on Tue, 5 Aug 2008 10:03:16 -0400)

> 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.


  reply	other threads:[~2008-08-05 14:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29 15:38 Pedro Alves
2008-07-29 15:43 ` Mark Kettenis
2008-08-05 13:49   ` Pedro Alves
2008-08-05 14:04     ` Daniel Jacobowitz
2008-08-05 14:33       ` Mark Kettenis [this message]
2008-08-07 22:32         ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808051429.m75ETYoJ001852@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=brobecker@adacore.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox