public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* oddity when exiting
@ 2003-03-01 21:35 Tom Tromey
  2003-03-04 20:44 ` Jim Blandy
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2003-03-01 21:35 UTC (permalink / raw)
  To: Gdb List

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.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: oddity when exiting
  2003-03-01 21:35 oddity when exiting Tom Tromey
@ 2003-03-04 20:44 ` Jim Blandy
  2003-03-04 21:59   ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2003-03-04 20:44 UTC (permalink / raw)
  To: tromey; +Cc: Gdb List


Tom Tromey <tromey@redhat.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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: oddity when exiting
  2003-03-04 20:44 ` Jim Blandy
@ 2003-03-04 21:59   ` Tom Tromey
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2003-03-04 21:59 UTC (permalink / raw)
  To: Jim Blandy; +Cc: Gdb List

Jim> Could you file a PR for this?

It is now cli/1120.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-04 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-01 21:35 oddity when exiting Tom Tromey
2003-03-04 20:44 ` Jim Blandy
2003-03-04 21:59   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).