From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32414 invoked by alias); 30 Dec 2005 16:48:06 -0000 Received: (qmail 32403 invoked by uid 22791); 30 Dec 2005 16:48:06 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 30 Dec 2005 16:48:05 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EsNQA-0001Zt-W5; Fri, 30 Dec 2005 11:48:03 -0500 Date: Fri, 30 Dec 2005 16:48:00 -0000 From: Daniel Jacobowitz To: Carlos Eduardo Rodrigues de Almeida , gdb@sources.redhat.com Subject: Re: Sending signal to inferior Message-ID: <20051230164802.GA5999@nevyn.them.org> Mail-Followup-To: Carlos Eduardo Rodrigues de Almeida , gdb@sources.redhat.com References: <214135380512291937q58cd9ebajc40590fdc3936be4@mail.gmail.com> <20051230041134.GB1316@white> <214135380512292029i36e2e5cft8f9715b1bfa2b4a5@mail.gmail.com> <20051230044151.GD1316@white> <214135380512292057r6b404d78t1b88d26f980ffb5a@mail.gmail.com> <20051230164300.GA3642@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051230164300.GA3642@white> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00221.txt.bz2 On Fri, Dec 30, 2005 at 11:43:00AM -0500, Bob Rossi wrote: > On Fri, Dec 30, 2005 at 04:57:38AM +0000, Carlos Eduardo Rodrigues de Almeida wrote: > > Thank you.. I'm trying to solve this for days.. > > Wow, that took me a long time to figure out, and I wrote libtgdb. > > It's the tty command that is allowing libtgdb to interrupt GDB when the > inferior is running. Apparently, if you don't move the inferior's > terminal via the GDB tty command, then you can't interrupt the inferior > when it's running. > > Basically, I'm assuming that the SIGINT to GDB is ignored if the > inferior has control of the terminal. However, if you put the inferior > on a different terminal, then GDB must handle the SIGINT. This > explanation is just a guess though. It shouldn't be. Check whether GDB is reaching handle_sigint() and whether it is going through the event loop properly? -- Daniel Jacobowitz CodeSourcery, LLC