From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19019 invoked by alias); 14 Oct 2006 21:17:47 -0000 Received: (qmail 19010 invoked by uid 22791); 14 Oct 2006 21:17:46 -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, 14 Oct 2006 21:17:44 +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 2DE127BB19E; Sun, 15 Oct 2006 10:17:37 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 8D2A4BE3B4; Sun, 15 Oct 2006 10:14:47 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17713.21317.602083.615952@kahikatea.snap.net.nz> Date: Sat, 14 Oct 2006 21:17:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: Reporting of "program no longer exists" In-Reply-To: <20061014210523.GA23445@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> X-Mailer: VM 7.19 under Emacs 22.0.50.25 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-10/txt/msg00101.txt.bz2 > That's definitely possible, though I've only ever seen it with threads; > in any case, wherever it appears, we should fix it. Losing track of > the inferior this way is just silly. I think Emacs does use threads (I don't know why). I also encounterd this when trying to make GDB asynchronous. I think it was because I got to ptrace (PTRACE_CONT,...) twice. The second encounter (and maybe the first) being if (ptrace (request, pid, 0, target_signal_to_host (signal)) == -1) perror_with_name (("ptrace")); in i386_linux_resume where it failed. -- Nick http://www.inet.net.nz/~nickrob