From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13732 invoked by alias); 4 Mar 2003 20:44:45 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13725 invoked from network); 4 Mar 2003 20:44:44 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by 172.16.49.205 with SMTP; 4 Mar 2003 20:44:44 -0000 Received: from zenia.red-bean.com (localhost.localdomain [127.0.0.1]) by zenia.red-bean.com (8.12.5/8.12.5) with ESMTP id h24KeE8A015546; Tue, 4 Mar 2003 15:40:15 -0500 Received: (from jimb@localhost) by zenia.red-bean.com (8.12.5/8.12.5/Submit) id h24KeDg6015542; Tue, 4 Mar 2003 15:40:13 -0500 To: tromey@redhat.com Cc: Gdb List Subject: Re: oddity when exiting References: <87bs0uwzfx.fsf@fleche.redhat.com> From: Jim Blandy Date: Tue, 04 Mar 2003 20:44:00 -0000 In-Reply-To: <87bs0uwzfx.fsf@fleche.redhat.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00087.txt.bz2 Tom Tromey writes: > I tried to quit gdb and got this: > > (gdb) q > The program is running. Exit anyway? (y or n) y > /home/tromey/gnu/Trunk/build/gcc/jc1: No such file or directory. > (gdb) > > Using `q' again got me out. But why did this happen? I had deleted > the executable in question, sure -- but I think it doesn't make sense > for gdb to prevent me from quitting in this case. I don't know what code is trying to re-open the executable file, but it wouldn't surprise me that GDB tries to open it, gets an error, and throws the exception back to the command loop. Could you file a PR for this?