From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29505 invoked by alias); 13 May 2006 21:57:38 -0000 Received: (qmail 29497 invoked by uid 22791); 13 May 2006 21:57:37 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 May 2006 21:57:34 +0000 Received: from farnswood.snap.net.nz (p202-124-112-34.snap.net.nz [202.124.112.34]) by viper.snap.net.nz (Postfix) with ESMTP id 71AC675750B; Sun, 14 May 2006 09:57:33 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 500) id 1D92D627ED; Sat, 13 May 2006 22:57:01 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17510.22060.587610.613452@farnswood.snap.net.nz> Date: Sun, 14 May 2006 04:17:00 -0000 To: Bob Rossi Cc: gdb@sourceware.org Subject: Re: invoking GDB from FE and signals In-Reply-To: <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> <20060513171441.GA13445@brasko.net> X-Mailer: VM 7.19 under Emacs 22.0.50.51 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/msg00183.txt.bz2 > 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? --text follows this line-- I'm not too familiar with the low level stuff. My understanding (Eli might correct me) is that Emacs always create a pty if possible and uses a pipe otherwise (I've not experienced the latter). It doesn't use readline, probably because the terminal can't have the required characteristics (Emacs controls all keyboard input) but simulates it through GDB's complete command that was written especially for Emacs > 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)'? Emacs uses ^c for other purposes (as a prefix key). I guess you mean "what 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". -- Nick http://www.inet.net.nz/~nickrob