From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29320 invoked by alias); 13 May 2006 17:14:04 -0000 Received: (qmail 29306 invoked by uid 22791); 13 May 2006 17:14:02 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao04.cox.net (HELO eastrmmtao04.cox.net) (68.230.240.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 May 2006 17:14:00 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao04.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060513171357.XVTZ9931.eastrmmtao04.cox.net@localhost.localdomain>; Sat, 13 May 2006 13:13:57 -0400 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1FexhR-0003dm-6D; Sat, 13 May 2006 13:14:41 -0400 Date: Sun, 14 May 2006 03:25:00 -0000 From: Bob Rossi To: gdb@sourceware.org Cc: Nick Roberts Subject: Re: invoking GDB from FE and signals Message-ID: <20060513171441.GA13445@brasko.net> References: <20060513141920.GC10678@brasko.net> <20060513145421.GA3664@nevyn.them.org> <20060513151026.GD10678@brasko.net> <20060513151057.GA4112@nevyn.them.org> <20060513152021.GE10678@brasko.net> <20060513154816.GA5022@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060513154816.GA5022@nevyn.them.org> User-Agent: Mutt/1.5.9i 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: 2006-05/txt/msg00182.txt.bz2 On Sat, May 13, 2006 at 11:48:16AM -0400, Daniel Jacobowitz wrote: > On Sat, May 13, 2006 at 11:20:21AM -0400, Bob Rossi wrote: > > When I say "the supported way", I'm assuming there is a way GDB provides > > for FE's to work with it in regards to sending signals, in particularly > > ^c. > > But there isn't :-) > > > If GDB doesn't provide this functionality and it's mere hackers > > chance that all of us FE's are getting this to work most of the time, > > then I understand what you mean. > > > > Othewise, if GDB has been designed to accept signal during certain > > circumstances, and not during others, I would love to know what those > > are so that I can benefit from using this functionality. > > If there were such a design, hopefully, it would be in the manual. All > of this is generally legacy from the GDB CLI, which is designed to work > with the host's job control. When the inferior is running and you > press Control-C, the signal goes to the inferior, not to GDB. > > Your needs may be different. Nick, Would you mind posting how Emacs starts up GDB both in annotate mode and in mi mode? Does it use a pty or pipe? Also, what does it do when ^c is read? Does it 'write' the byte to GDB's stdin? or does it use 'kill(gdb_pid, SIGINT)'? Thanks, Bob Rossi