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

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Apr 2007 20:35:32 -0400
From: Bob Rossi <bob_rossi AT cox DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin or gdb question
Message-ID: <20070404003532.GH3459@cox.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20070403163948 DOT GC3459 AT cox DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0704031254330 DOT 19105 AT access1 DOT cims DOT nyu DOT edu>
MIME-Version: 1.0
In-Reply-To: <Pine.GSO.4.63.0704031254330.19105@access1.cims.nyu.edu>
User-Agent: Mutt/1.5.12-2006-07-14
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, Apr 03, 2007 at 12:54:57PM -0400, Igor Peshansky wrote:
> On Tue, 3 Apr 2007, Bob Rossi wrote:
> > 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.

Thanks, neither of these showed me the results that I used to get with
cgdb-0.6.3. I've actually decided that I like cgdb working exactly the
same way gdb does. So not being able to interupt the program with ctrl-c
is fine.

Thanks,
Bob Rossi

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