From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7334 invoked by alias); 15 Oct 2006 20:55:19 -0000 Received: (qmail 7319 invoked by uid 22791); 15 Oct 2006 20:55:14 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 15 Oct 2006 20:55:09 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-5-198.inter.net.il [83.130.5.198]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EXU54964 (AUTH halo1); Sun, 15 Oct 2006 22:55:03 +0200 (IST) Date: Sun, 15 Oct 2006 20:55:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: nickrob@snap.net.nz, ghost@cs.msu.su, gdb-patches@sources.redhat.com In-reply-to: <20061015195415.GA23211@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 15 Oct 2006 15:54:15 -0400) Subject: Re: Reporting of "program no longer exists" Reply-to: Eli Zaretskii References: <200610142033.16596.ghost@cs.msu.su> <20061014163911.GA16728@nevyn.them.org> <17713.20182.174863.175193@kahikatea.snap.net.nz> <20061014210523.GA23445@nevyn.them.org> <17713.50027.927642.379449@kahikatea.snap.net.nz> <20061015154128.GA14607@nevyn.them.org> <17714.36770.10163.719995@kahikatea.snap.net.nz> <20061015195415.GA23211@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00170.txt.bz2 > Date: Sun, 15 Oct 2006 15:54:15 -0400 > From: Daniel Jacobowitz > Cc: Vladimir Prus , gdb-patches@sources.redhat.com > > > > > > If you type Control-C, why did it kill emacs? Shouldn't it break in > > > the debugger, and then let you resume? > > > > Emacs uses Control-C to for keyboard-quit (at least in the terminal version) so > > its .gdbinit has the line: > > > > handle 2 noprint pass > > Now I'm majorly confused; C-c is a prefix command in every emacs I've > ever used. You are both right. When Emacs runs on a tty, it reprograms the keyboard to generate SIGINT on C-g instead of C-c, and the SIGINT handler calls keyboard-quit. That is why .gdbinit that comes with Emacs passes SIGINT down to Emacs.