From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9880 invoked by alias); 15 May 2006 20:20:51 -0000 Received: (qmail 9868 invoked by uid 22791); 15 May 2006 20:20:50 -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; Mon, 15 May 2006 20:20:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FfjYY-0002Hl-Dg; Mon, 15 May 2006 16:20:42 -0400 Date: Mon, 15 May 2006 21:02:00 -0000 From: Daniel Jacobowitz To: Bob Rossi Cc: PAUL GILLIAM , gdb@sourceware.org Subject: Re: invoking GDB from FE and signals Message-ID: <20060515202042.GA8673@nevyn.them.org> Mail-Followup-To: Bob Rossi , PAUL GILLIAM , gdb@sourceware.org References: <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> <20060515194313.GA21608@brasko.net> <20060515200547.GA8151@nevyn.them.org> <20060515201006.GB21608@brasko.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060515201006.GB21608@brasko.net> User-Agent: Mutt/1.5.11+cvs20060403 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/msg00223.txt.bz2 On Mon, May 15, 2006 at 04:10:06PM -0400, Bob Rossi wrote: > OK, here's the problem. There are 2 case's, using a PTY or not. > > I am currently not using a PTY. So, I send the signal via kill. Is this > correct or incorrect? I have no idea how to get this right for the pipe case. Maybe someone else does. > If I use a PTY, which I'm going to have to reimplement. I'll except > signals like SIGINT, cause I'll forward them with 'write' to the PTY > between GDB and CGDB. I don't think "write" will do it; you need something more complicated. Maybe I'm wrong and writing the interrupt character will do it. GDB expects, today, to have a console. It expects C-c to go to the foreground process group on that console. It arranges to be the foreground process when GDB is stopped, and for the inferior to be in the foreground when it is running. This may not be the most useful behavior for your case. -- Daniel Jacobowitz CodeSourcery