From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21690 invoked by alias); 15 May 2006 19:43:12 -0000 Received: (qmail 21526 invoked by uid 22791); 15 May 2006 19:43:11 -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; Mon, 15 May 2006 19:42:30 +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 <20060515194227.XEJW9931.eastrmmtao04.cox.net@localhost.localdomain>; Mon, 15 May 2006 15:42:27 -0400 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1FfiyI-0005fr-2S; Mon, 15 May 2006 15:43:14 -0400 Date: Mon, 15 May 2006 20:05:00 -0000 From: Bob Rossi To: PAUL GILLIAM , gdb@sourceware.org Subject: Re: invoking GDB from FE and signals Message-ID: <20060515194313.GA21608@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> <1147712871.3672.153.camel@dufur.beaverton.ibm.com> <20060515181821.GA18932@brasko.net> <20060515191714.GA5918@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060515191714.GA5918@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/msg00217.txt.bz2 On Mon, May 15, 2006 at 03:17:14PM -0400, Daniel Jacobowitz wrote: > On Mon, May 15, 2006 at 02:18:21PM -0400, Bob Rossi wrote: > > OK, here's what happens from the FE perspective though. You type ^c. The > > FE get's the signal (which is in a different process group than GDB), > > and passes the signal to GDB with 'kill (gdb_pid, SIGINT)'. > > Jim just explained this, but it may not have been clear: that is the > wrong way to forward the signal. If you are running GDB on a > pseudo-tty, you need to forward the job control signal to that TTY, not > to the GDB process itself. > > I don't really know how to do that. Is it by setting BRKING in > termios? There's something about TIOCSIGNAL too. Lots of code for > this in emacs. I'm totally confused. I'm certainly not an expert, but sending a signal can only be done to a pid using kill. What other ways are there? Bob Rossi