From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5088 invoked by alias); 18 Apr 2007 12:11:44 -0000 Received: (qmail 5079 invoked by uid 22791); 18 Apr 2007 12:11:43 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Apr 2007 13:11:41 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 6EEA54B267; Wed, 18 Apr 2007 07:11:39 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 2C55B4B262; Wed, 18 Apr 2007 07:11:39 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1He90c-00057n-5J; Wed, 18 Apr 2007 08:11:38 -0400 Date: Wed, 18 Apr 2007 12:11:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Dodji Seketeli , GDB Discuss Subject: Re: question about -file-exec-and-symbols gdbmi command Message-ID: <20070418121137.GA19685@caradoc.them.org> Mail-Followup-To: Nick Roberts , Dodji Seketeli , GDB Discuss 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> <17958.2099.694416.221119@farnswood.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17958.2099.694416.221119@farnswood.snap.net.nz> User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00117.txt.bz2 On Wed, Apr 18, 2007 at 11:59:47PM +1200, Nick Roberts wrote: > > 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? Nope. The difference is that the front end has some knowledge of "this is a new program" versus "this is the same program being reloaded", because it issued the command in response to some user stimulus. GDB has no way to know why the command was issued; in one case deleting breakpoints is appropriate, in the other it is not. So if the front end wants breakpoints deleted, I think it's reasonable for it to do so explicitly. -- Daniel Jacobowitz CodeSourcery