From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13950 invoked by alias); 14 Jul 2007 05:16:27 -0000 Received: (qmail 13941 invoked by uid 22791); 14 Jul 2007 05:16:26 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 14 Jul 2007 05:16:24 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l6E5GMqJ004072 for ; Sat, 14 Jul 2007 01:16:22 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6E5GMta028823 for ; Sat, 14 Jul 2007 01:16:22 -0400 Received: from ironwood.lan (vpn-15-55.rdu.redhat.com [10.11.15.55]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6E5GLwf014353 for ; Sat, 14 Jul 2007 01:16:21 -0400 Date: Sun, 15 Jul 2007 01:01:00 -0000 From: Kevin Buettner To: gdb-patches@sources.redhat.com Subject: Re: [RFC] Add another "Are you sure..." case to gdb_unload in lib/gdb.exp Message-ID: <20070713221621.6d14b1ce@ironwood.lan> In-Reply-To: <20070714014123.GA23933@caradoc.them.org> References: <20070713182535.3af63443@ironwood.lan> <20070714014123.GA23933@caradoc.them.org> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.4; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00211.txt.bz2 On Fri, 13 Jul 2007 21:41:23 -0400 Daniel Jacobowitz 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