delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/03/12:55:38

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Apr 2007 12:54:57 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Bob Rossi <bob_rossi AT cox DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: cygwin or gdb question
In-Reply-To: <20070403163948.GC3459@cox.net>
Message-ID: <Pine.GSO.4.63.0704031254330.19105@access1.cims.nyu.edu>
References: <20070403163948 DOT GC3459 AT cox DOT net>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Tue, 3 Apr 2007, Bob Rossi wrote:

> Hi,
>
> I have one more cgdb issue that seems to be cygwin related. However, it
> could be a gdb issue. I'm not sure.
>
> In verison cgdb-0.6.3 I start GDB up on a pipe and communicate with it
> over the pipe. This works fine, except that GDB behaves slightly
> differently when it is invoked on a pipe rather than a pty. That is,
> GDB provides interactive questions to the user when it's on a pty
> and not when it's on a pipe.
>
> In svn trunk for CGDB I began starting GDB on a pty and communicating
> with it that way. This fixed a bug for a user on max os X and provided
> the user with a GDB that acted more like it was on an actual terminal.
>
> This seems to work fine on linux, however I noticed a difference on
> Cygwin. I compile a large GUI application and debug it. I set
> no breakpoints and type 'r', do some stuff and the GUI and then stop.
> The debugger is hanging, waiting for something interesting to happen.
> If I type ctrl-c on linux, it interupts the debugger so that I can
> set a breakpoint or do something else interesting. If I do this on
> cygwin, it doesn't interupt the program.
>
> In fact, this isn't just a problem with CGDB, the exact same results
> happen with gdb. So, is it a cygwin or gdb issue that it appears that
> you can interupt the inferior when gdb is on a pipe, but not when it's
> on a terminal.
>
> Is there an easy way for me to test starting gdb on a pipe outside of
> CGDB? I would like to reproduce that gdb does interupt the inferior when
> ctrl-c is typed and GDB is started on a pipe.

Yes.  Use CYGWIN=tty or rxvt.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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