This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: oddity when exiting


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]