From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28286 invoked by alias); 14 May 2006 04:17:01 -0000 Received: (qmail 28274 invoked by uid 22791); 14 May 2006 04:17:00 -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; Sun, 14 May 2006 04:16:57 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ff82H-0004vb-2k; Sun, 14 May 2006 00:16:53 -0400 Date: Sun, 14 May 2006 05:01:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Bob Rossi , gdb@sourceware.org Subject: Re: invoking GDB from FE and signals Message-ID: <20060514041653.GA18922@nevyn.them.org> Mail-Followup-To: Nick Roberts , Bob Rossi , gdb@sourceware.org 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> <20060513171441.GA13445@brasko.net> <17510.22060.587610.613452@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17510.22060.587610.613452@farnswood.snap.net.nz> 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: 2006-05/txt/msg00185.txt.bz2 On Sun, May 14, 2006 at 09:57:00AM +1200, Nick Roberts wrote: > does it do when SIGINT is read" (which is sent by ~c^c). Well it just works > like it does in a terminal but then I was surprised when Daniel said: > > When the inferior is running and you press Control-C, the signal goes to > the inferior, not to GDB. > > because I had thought it was the other way round and GDB could decide whether > to pass the signal on to the inferior or not according to the output of > "info signal". Job control signals are funny. The C-c sends a signal to the process group in control of the current terminal, and when the inferior is running, GDB makes sure that it "owns" the terminal (so that it won't e.g. be automatically stopped with SIGTTIN if it tries to read()). This all predates 'set tty' of course. -- Daniel Jacobowitz CodeSourcery