This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: oddity when exiting
- From: Jim Blandy <jimb at redhat dot com>
- To: tromey at redhat dot com
- Cc: Gdb List <gdb at sources dot redhat dot com>
- Date: 04 Mar 2003 15:40:12 -0500
- Subject: Re: oddity when exiting
- References: <87bs0uwzfx.fsf@fleche.redhat.com>
Tom Tromey <tromey at redhat dot com> 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?