From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10686 invoked by alias); 15 May 2006 18:42:08 -0000 Received: (qmail 10678 invoked by uid 22791); 15 May 2006 18:42:07 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 15 May 2006 18:42:06 +0000 Received: (qmail 19920 invoked from network); 15 May 2006 18:42:04 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 May 2006 18:42:04 -0000 To: Bob Rossi Cc: Nick Roberts , gdb@sourceware.org Subject: Re: invoking GDB from FE and signals 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> <20060514041653.GA18922@nevyn.them.org> <20060515133536.GF13445@brasko.net> From: Jim Blandy Date: Mon, 15 May 2006 19:04:00 -0000 In-Reply-To: <20060515133536.GF13445@brasko.net> (Bob Rossi's message of "Mon, 15 May 2006 09:35:36 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00212.txt.bz2 Bob Rossi writes: > On Sun, May 14, 2006 at 12:16:53AM -0400, Daniel Jacobowitz wrote: >> 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. > > O, right. The tty command. I definatly use that for the inferior which I > believe emacs does not. Nick, do you know if emacs uses the 'set tty' > command? When you use GDB in the normal way, 'M-x gdb', it doesn't.