From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26814 invoked by alias); 18 Apr 2007 12:02:15 -0000 Received: (qmail 26805 invoked by uid 22791); 18 Apr 2007 12:02:14 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Apr 2007 13:02:06 +0100 Received: from farnswood.snap.net.nz (78.62.255.123.dynamic.snap.net.nz [123.255.62.78]) by viper.snap.net.nz (Postfix) with ESMTP id E365E3D9E81; Thu, 19 Apr 2007 00:02:02 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 500) id EB445627ED; Wed, 18 Apr 2007 12:59:48 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17958.2099.694416.221119@farnswood.snap.net.nz> Date: Wed, 18 Apr 2007 12:02:00 -0000 To: Daniel Jacobowitz Cc: Dodji Seketeli , GDB Discuss Subject: Re: question about -file-exec-and-symbols gdbmi command In-Reply-To: <20070418105813.GA6857@caradoc.them.org> References: <20070418111206.45c55d72@coin> <17957.60377.419260.20236@farnswood.snap.net.nz> <20070418121124.36ccd4fa@coin> <17957.62645.824183.252961@farnswood.snap.net.nz> <20070418105813.GA6857@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.0.97.5 X-IsSubscribed: yes 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/msg00116.txt.bz2 > > > I maybe I could try a patch that introduces a new command that clears > > > all the breakpoints when you load a new file ? > > > > I was thinking modifying the GDB environment with the set command, e.g., > > > > set breakpoint auto-clear on/off > > > > I think a new command would make behaviour hard to toggle, with a front end > > say. > > > > I can't approve your patches, so don't do anything yet. Wait for Daniel > > Jacobowitz, for example, to give his opinion. > > I don't see the point. If you want to delete breakpoints when you > load a new file, why not just do so? It's easy with -break-list and > -break-delete. I'm thinking that if you load a new program into a front end, there's no need to restart GDB, and the user might be surprised to see his old breakpoints are still there. I don't have DDD or Insight to hand to see what they do. > It shouldn't happen automatically. For instance, one use of > -file-exec-and-symbols is to tell GDB that the file has been recompiled. That's independent of the breakpoint issue, isn't it? -- Nick http://www.inet.net.nz/~nickrob