* Re: Reporting of "program no longer exists"
[not found] ` <20061015154128.GA14607@nevyn.them.org>
@ 2006-10-15 19:47 ` Nick Roberts
2006-10-15 19:54 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Nick Roberts @ 2006-10-15 19:47 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Vladimir Prus, gdb-patches
Daniel Jacobowitz writes:
> On Sun, Oct 15, 2006 at 06:13:15PM +1300, Nick Roberts wrote:
> > Currently if I run Emacs under GDB and type CTRL-C I get:
> >
> > (gdb) r
> > Starting program: /home/nickrob/emacs/src/emacs -geometry 80x40+0+0
> > [Thread debugging using libthread_db enabled]
> > [New Thread -1208174912 (LWP 7704)]
> > [Switching to Thread -1208174912 (LWP 7704)]
> > Breakpoint 3 at 0x80f654b: file xterm.c, line 7833.
> > Couldn't get registers: No such process.
>
> I assume this is a prerelease. The emacs21 I've got doesn't use
> pthreads at all.
Yes.
> > If I apply the patch below (from gdb-6.3-ia64-sigill-20051115.patch, a patch
> > for Fedora Core 5) I get:
> >
> > (gdb) r
> > Starting program: /home/nickrob/emacs/src/emacs -geometry 80x40+0+0
> > [Thread debugging using libthread_db enabled]
> > [New Thread -1208269120 (LWP 8067)]
> > [Switching to Thread -1208269120 (LWP 8067)]
> > Breakpoint 3 at 0x80f654b: file xterm.c, line 7833.
> >
> > Program terminated with signal SIGINT, Interrupt.
> > The program no longer exists.
> > (gdb)
>
> 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
> > Assuming this patch is appropriate, it's frustrating that patches by the
> > distributions don't get fed back (especially those from RedHat!).
>
> Yes, I know - but every distribution is guilty of this to some extent;
> it takes so much effort to get patches merged. We all do what we can.
It's in everyones interest that the versions don't diverge more than
necessary.
> For big patches I prefer to have the author submit them; I recently
> asked Jeff to resubmit one of the other patches from that SRPM, but
> haven't heard back from him yet. But this is a nice small one, so
> the usual copyright concerns don't matter.
>
> > 2005-11-15 Jeff Johnston <jjohnstn@redhat.com>
> >
> > * thread-db.c (thread_db_wait): Don't bother continuing if
> > the wait result indicates the program terminated with a signal.
>
> So, if you want to update the changelog to linux-thread-db.c, I think
> it'd be OK to apply this patch; it makes good sense.
OK, I've done this with Jeff's name on the ChangeLog. I've not added
(tiny change) as we do in Emacs as his name appears numerous times
previously and I assume his assignment hasn't been revoked.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reporting of "program no longer exists"
2006-10-15 19:47 ` Reporting of "program no longer exists" Nick Roberts
@ 2006-10-15 19:54 ` Daniel Jacobowitz
2006-10-15 20:28 ` Nick Roberts
2006-10-15 20:55 ` Eli Zaretskii
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-10-15 19:54 UTC (permalink / raw)
To: Nick Roberts; +Cc: Vladimir Prus, gdb-patches
On Mon, Oct 16, 2006 at 08:44:34AM +1300, Nick Roberts wrote:
> > > If I apply the patch below (from gdb-6.3-ia64-sigill-20051115.patch, a patch
> > > for Fedora Core 5) I get:
> > >
> > > (gdb) r
> > > Starting program: /home/nickrob/emacs/src/emacs -geometry 80x40+0+0
> > > [Thread debugging using libthread_db enabled]
> > > [New Thread -1208269120 (LWP 8067)]
> > > [Switching to Thread -1208269120 (LWP 8067)]
> > > Breakpoint 3 at 0x80f654b: file xterm.c, line 7833.
> > >
> > > Program terminated with signal SIGINT, Interrupt.
> > > The program no longer exists.
> > > (gdb)
> >
> > 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. Anyway, I was just making sure that emacs exiting was what
you wanted to happen when you hit C-c, so that's OK.
> OK, I've done this with Jeff's name on the ChangeLog.
Thanks a lot.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reporting of "program no longer exists"
2006-10-15 19:54 ` Daniel Jacobowitz
@ 2006-10-15 20:28 ` Nick Roberts
2006-10-15 20:55 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Nick Roberts @ 2006-10-15 20:28 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
> > 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. Anyway, I was just making sure that emacs exiting was what
> you wanted to happen when you hit C-c, so that's OK.
I mean SIGINT for keyboard-quit but I digress...
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reporting of "program no longer exists"
2006-10-15 19:54 ` Daniel Jacobowitz
2006-10-15 20:28 ` Nick Roberts
@ 2006-10-15 20:55 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2006-10-15 20:55 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: nickrob, ghost, gdb-patches
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-15 20:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200610142033.16596.ghost@cs.msu.su>
[not found] ` <20061014163911.GA16728@nevyn.them.org>
[not found] ` <17713.20182.174863.175193@kahikatea.snap.net.nz>
[not found] ` <20061014210523.GA23445@nevyn.them.org>
[not found] ` <17713.50027.927642.379449@kahikatea.snap.net.nz>
[not found] ` <20061015154128.GA14607@nevyn.them.org>
2006-10-15 19:47 ` Reporting of "program no longer exists" Nick Roberts
2006-10-15 19:54 ` Daniel Jacobowitz
2006-10-15 20:28 ` Nick Roberts
2006-10-15 20:55 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox