delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/17/14:12:07

X-Spam-Check-By: sourceware.org
Message-ID: <2284342f0603171111n3faaf436u67d9e3fd4b0ce0aa@mail.gmail.com>
Date: Fri, 17 Mar 2006 14:11:54 -0500
From: "Doug Bohl" <douglas DOT bohl AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: GDB Interrupts on Cygwin
In-Reply-To: <20060317151513.GA22857@trixie.casa.cgf.cx>
MIME-Version: 1.0
References: <2284342f0603170055i5268807bn83042ea5988aa46 AT mail DOT gmail DOT com> <20060317115655 DOT GH30980 AT brasko DOT net> <20060317151513 DOT GA22857 AT trixie DOT casa DOT cgf DOT cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k2HJC3wQ020258

Yes, I'm running it from a Windows console.  I had CYGWIN=tty, but
I've now removed it, and Ctrl-C still isn't working.

I tried the MinGW version of GDB.  Still no Ctrl-C.  I tried Bob's tty
'voodoo'.  Still no Ctrl-C.

I'm using GDB 6.3.50_2004-12-28-cvs (cygwin-special), I have also
compiled GDB 6.4 but it crashes immediately upon trying to debug a
program (I'm not interested in solving this problem for now).

For anyone who has gotten Ctrl-C to work on Cygwin: what version of
GDB are you using?

On 3/17/06, Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> wrote:
> On Fri, Mar 17, 2006 at 06:56:55AM -0500, Bob Rossi wrote:
> >On Fri, Mar 17, 2006 at 03:55:08AM -0500, Doug Bohl wrote:
> >> When running a Windows application from GDB, GDB gives control to the
> >> application at a certain point.  It would be nice to, at an arbitrary
> >> time, suspend the application and give control back to GDB.  I know
> >> that I can set breakpoints, but sometimes I don't know exactly when I
> >> want to break until after I'm running the application.  Ctrl-C
> >> supposedly sends the SIGINT signal to GDB, breaking the running
> >> application and restoring control to GDB.  However, this does not
> >> appear to work, at least not on Cygwin.
> >
> >Even though this may seem strange, try this. Before starting GDB, type
> >'tty' at the console. Then, after you start GDB, run the command 'tty
> >outputofttycommandfromconsole'. I think this will enable the ^c.
>
> This is a no-voodoo zone.
>
> CTRL-C works fine in gdb.  I use it ALL of the time.
>
> Maybe the OP has CYGWIN=tty set or is trying to run from rxvt.  If so,
> don't do that.  Run gdb from a windows console and it should work fine.
>
> 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/
>
>

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