From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23522 invoked by alias); 12 Sep 2005 07:43:47 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23505 invoked by uid 22791); 12 Sep 2005 07:43:40 -0000 Received: from tech3.picorp.com (HELO picorp.com) (82.165.243.91) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 12 Sep 2005 07:43:40 +0000 Received: (qmail 13925 invoked by uid 10004); 12 Sep 2005 07:43:39 -0000 Received: from 164.164.12.120 by u15170962.onlinehome-server.com (envelope-from , uid 2020) with qmail-scanner-1.24 (clamdscan: 0.80/1078. spamassassin: 3.0.1. Clear:RC:1(164.164.12.120):. Processed in 0.343592 secs); 12 Sep 2005 07:43:39 -0000 Received: from unknown (HELO ?172.16.143.65?) (himanshuc@164.164.12.120) by picorp.com with SMTP; 12 Sep 2005 07:43:39 -0000 Message-ID: <432531B0.1000908@picorp.com> Date: Mon, 12 Sep 2005 07:43:00 -0000 From: Himanshu Chandola User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Nick Roberts CC: gdb@sources.redhat.com Subject: Re: SIGINT not passed to process on cygwin References: <43251B11.2030603@picorp.com> <17189.11405.951424.968636@farnswood.snap.net.nz> In-Reply-To: <17189.11405.951424.968636@farnswood.snap.net.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00070.txt.bz2 thanks that helped. Although in cygwin ^C is set to intr, the problem continued to be the same. The ^C on gdb didn't stop it. Himanshu Nick Roberts wrote: >Himanshu Chandola writes: > > Has anyone encountered the following: > > attach gdb on cygwin to a running process. Send SIGINT to the process. > > gdb handles SIGINT and stops. Try to continue the running process , the > > SIGINT is not passed to the process. > >By default, GDB doesn't pass SIGINT to the process: > >(gdb) info signal 2 >Signal Stop Print Pass to program Description >SIGINT Yes Yes No Interrupt > >If you want it to do so, type: > >(gdb) handle 2 pass > > > Worse Ctrl + C interrupts don't > > work on the running gdb. > > gdb version :6.3.50_2004-12-28-cvs (cygwin-special) > >Assuming Cygwin has stty, if you type "stty -a" what is SIGINT (intr) bound >to? Does it say ^C does anything? If you want it to send SIGINT type: > >stty intr ^C (remember to use quoted-insert (^V) before typing ^C). > >Nick > > >