From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30732 invoked by alias); 30 Dec 2005 22:58:31 -0000 Received: (qmail 30725 invoked by uid 22791); 30 Dec 2005 22:58:30 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao01.cox.net (HELO eastrmmtao01.cox.net) (68.230.240.38) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Dec 2005 22:58:28 +0000 Received: from white ([68.9.65.164]) by eastrmmtao01.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051230225655.MZAJ4894.eastrmmtao01.cox.net@white>; Fri, 30 Dec 2005 17:56:55 -0500 Received: from bob by white with local (Exim 3.36 #1 (Debian)) id 1EsTCO-0001Ct-00; Fri, 30 Dec 2005 17:58:12 -0500 Date: Fri, 30 Dec 2005 22:58:00 -0000 From: Bob Rossi To: Carlos Eduardo Rodrigues de Almeida , gdb@sources.redhat.com Subject: Re: Sending signal to inferior Message-ID: <20051230225812.GE4388@white> 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> <20051230164802.GA5999@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051230164802.GA5999@nevyn.them.org> User-Agent: Mutt/1.5.9i 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/msg00226.txt.bz2 On Fri, Dec 30, 2005 at 11:48:02AM -0500, Daniel Jacobowitz wrote: > 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? This is a tough one. For some reason, if I start debugging GDB, it doesn't reach the handle_sigint line. However, with fprintf there, I'm seeing output. Could I be doing something wrong or is this expected? I configured && compiled like this: cvs -d ':ext:bobbybrasko@sources.redhat.com:/cvs/src' co gdb CFLAGS=-g ../src/configure make I was wondering if any of the -W compile options stop me from debuging GDB in this case. Thanks, Bob Rossi