From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17001 invoked by alias); 14 Jul 2007 01:41:28 -0000 Received: (qmail 16993 invoked by uid 22791); 14 Jul 2007 01:41:28 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 14 Jul 2007 01:41:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5769C98299; Sat, 14 Jul 2007 01:41:25 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 2614798296; Sat, 14 Jul 2007 01:41:25 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1I9WdP-0006G8-6A; Fri, 13 Jul 2007 21:41:23 -0400 Date: Sat, 14 Jul 2007 05:16:00 -0000 From: Daniel Jacobowitz To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Add another "Are you sure..." case to gdb_unload in lib/gdb.exp Message-ID: <20070714014123.GA23933@caradoc.them.org> Mail-Followup-To: Kevin Buettner , gdb-patches@sources.redhat.com References: <20070713182535.3af63443@ironwood.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070713182535.3af63443@ironwood.lan> User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00210.txt.bz2 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