This is the mail archive of the gdb-patches@sourceware.org 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: [RFC] Add another "Are you sure..." case to gdb_unload in lib/gdb.exp


On Fri, 13 Jul 2007 21:41:23 -0400
Daniel Jacobowitz <drow@false.org> wrote:

> 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.

Okay, I'll dig into this a bit more.  Thanks for looking this over!

Kevin


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