This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Add another "Are you sure..." case to gdb_unload in lib/gdb.exp
- From: Daniel Jacobowitz <drow at false dot org>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 13 Jul 2007 21:41:23 -0400
- Subject: Re: [RFC] Add another "Are you sure..." case to gdb_unload in lib/gdb.exp
- References: <20070713182535.3af63443@ironwood.lan>
On Fri, Jul 13, 2007 at 06:25:35PM -0700, Kevin Buettner wrote:
> (gdb) file
> A program is being debugged already.
> Are you sure you want to change the file? (y or n) ERROR: couldn't unload file in /ironwood1/toshmep-070403-branch/mep-elf/bld/gdb/testsuite/../../gdb/gdb (timed out).
> kill
Hmm. Maybe this is a bug in gdb, actually:
> -re "Discard symbol table from .*y or n.*$" {
> send_gdb "y\n"
> exp_continue
That question (generated elsewhere) might be all we should ask.
However, for the testsuite's purpose you can go even further. I don't
think you need gdb_unload at all, and sid is the only remaining caller
of it. It's followed by a new gdb_file_cmd, which should suffice.
--
Daniel Jacobowitz
CodeSourcery