From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1229 invoked by alias); 3 Feb 2008 20:40:22 -0000 Received: (qmail 1221 invoked by uid 22791); 3 Feb 2008 20:40:22 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 03 Feb 2008 20:40:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id D033D2AA4BD; Sun, 3 Feb 2008 15:40:02 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JrMtBOlvyDRL; Sun, 3 Feb 2008 15:40:02 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 838C92AA4BC; Sun, 3 Feb 2008 15:40:02 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 5792BE7ACB; Sun, 3 Feb 2008 12:40:00 -0800 (PST) Date: Sun, 03 Feb 2008 20:40:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [RFA] new set/show multiple-choice-auto-select command (take 3) Message-ID: <20080203204000.GB21614@adacore.com> References: <20080203043755.GI1581@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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: 2008-02/txt/msg00056.txt.bz2 > > The change since the last time is that the default had been changed > > to "all". > > Is this the current behavior, or are we changing the behavior here? It's kind of both :). If you remember some work has been done recently to handle breakpoints with multiple locations. For instance, breaking on a constructor results in at least 2 locations for the same breakpoint. In that case, the behavior was the equivalent of having the new setting set to "all", so we're not changing anything here. But when dealing with homonyms (for instance, breaking on overloaded methods), the standard behavior was to ask the user to select the ones he wanted to break on. This patch makes things more consistent by changing the behavior. Now, the debugger will break on all matches by default - but the old behavior can be of course restored using "ask". Similarly in Ada, we used to ask the user by default. But we decided to change this because we think that breaking on all matches is what the user wants most of the time, and also to make it consistent with the other languages. -- Joel