From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13101 invoked by alias); 15 Oct 2006 19:47:34 -0000 Received: (qmail 13091 invoked by uid 22791); 15 Oct 2006 19:47:34 -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; Sun, 15 Oct 2006 19:47:30 +0000 Received: from kahikatea.snap.net.nz (p202-124-124-213.snap.net.nz [202.124.124.213]) by viper.snap.net.nz (Postfix) with ESMTP id D6C3F7BB3DD; Mon, 16 Oct 2006 08:47:26 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id B4087BE3B4; Mon, 16 Oct 2006 08:44:35 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17714.36770.10163.719995@kahikatea.snap.net.nz> Date: Sun, 15 Oct 2006 19:47:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , gdb-patches@sources.redhat.com Subject: Re: Reporting of "program no longer exists" In-Reply-To: <20061015154128.GA14607@nevyn.them.org> 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> X-Mailer: VM 7.19 under Emacs 22.0.50.26 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/msg00167.txt.bz2 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 > > > > * 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