Bug 8225 - can't exit when executable removed
Summary: can't exit when executable removed
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: 5.2
: P3 normal
Target Milestone: 6.8
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 21:38 UTC by Tom Tromey
Modified: 2008-12-22 00:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2003-03-04 21:38:00 UTC
[Converted from Gnats 1120]

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.


This is with:

fleche. gdb --version
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux".

AKA /usr/bin/gdb on an x86 Red Hat Linux 7.3 box.

Release:
5.2-2

Environment:
x86 Red Hat Linux 7.3
Comment 1 Tom Tromey 2008-12-22 00:29:39 UTC
I tried with 6.8 and now it does successfully exit.