Re: Reporting of "program no longer exists"

Eli Zaretskii
2006-10-15T20:55:19Z

> Date: Sun, 15 Oct 2006 15:54:15 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Vladimir Prus <ghost@cs.msu.su>, 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.