From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 781 invoked by alias); 18 Apr 2007 10:11:34 -0000 Received: (qmail 717 invoked by uid 22791); 18 Apr 2007 10:11:33 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.171) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Apr 2007 11:11:29 +0100 Received: by ug-out-1314.google.com with SMTP id m3so814564uge for ; Wed, 18 Apr 2007 03:11:27 -0700 (PDT) Received: by 10.66.236.13 with SMTP id j13mr1193727ugh.1176891086418; Wed, 18 Apr 2007 03:11:26 -0700 (PDT) Received: from coin ( [82.237.12.13]) by mx.google.com with ESMTP id z40sm1642385ugc.2007.04.18.03.11.25; Wed, 18 Apr 2007 03:11:25 -0700 (PDT) Date: Wed, 18 Apr 2007 10:11:00 -0000 From: Dodji Seketeli To: Nick Roberts Cc: GDB Discuss Subject: Re: question about -file-exec-and-symbols gdbmi command Message-ID: <20070418121124.36ccd4fa@coin> In-Reply-To: <17957.60377.419260.20236@farnswood.snap.net.nz> References: <20070418111206.45c55d72@coin> <17957.60377.419260.20236@farnswood.snap.net.nz> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-Operating-System: Debian GNU/Linux Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00113.txt.bz2 On Wed, 18 Apr 2007 21:58:49 +1200 Nick Roberts wrote: [...] > -file-exec-and-symbols is really just the `file' command: > > In mi-cmds.c: > > { "file-exec-and-symbols", { "file", 1 }, NULL, NULL }, > > so it's not restricted to MI. > > I don't really use either but maybe it would be inconvenient to have > all the breakpoints cleared, if you wanted to switch to another > version of the same program, say. It's easier to delete then all > manually, just with `delete' than it is to add them back again. > > Perhaps it could be a GDB option. Okay thank you for the hints, Nick. I maybe I could try a patch that introduces a new command that clears all the breakpoints when you load a new file ? Cheers, -- Dodji Seketeli http://www.seketeli.org/dodji