www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/27/15:19:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 27 Jan 2004 15:07:23 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: rs AT atp DOT tuwien DOT ac DOT at
Subject: Re: gdb problem
Message-ID: <20040127200723.GB17793@redhat.com>
Mail-Followup-To: cygwin AT cygwin DOT com, rs AT atp DOT tuwien DOT ac DOT at
References: <401669D4 DOT A0BD8676 AT atp DOT tuwien DOT ac DOT at>
Mime-Version: 1.0
In-Reply-To: <401669D4.A0BD8676@atp.tuwien.ac.at>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

On Tue, Jan 27, 2004 at 02:38:28PM +0100, RS wrote:
>>Don't use CYGWIN=tty when debugging.  It confuses the debugee.
>
>First of all thank you, it really helps when I start a shell using
>"cygwin\cygwin.bat".

Ok.  So, if you want to do this, then you will observe the behavior
that you mentioned.

>But I do not understand why it helps, because gdb is a unix program and
>I thought that
>problems with tty option may occur with Windows programs.
>Another point is that I commonly use
>"cygwin\usr\X11R6\bin\startxwin.bat" to start a shell.
>Here no CYGWIN environment variable is defined. Nevertheless I have the
>problem with
>gdb in this case.

Same problem.  gdb starts the debugee in a fashion that breaks the
understanding that "this pipe that is attached to stdin/stdout/stderr is
actually a tty/pty".  So, cygwin (or MSVCRT) assumes that you are attached
to a pipe and buffers input/output accordingly.

It's possible to modify gdb to work around this but that isn't going to
help you in the short term and I have no plans on doing this in the
short to medium term.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019