From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24204 invoked by alias); 17 Jan 2008 12:31:59 -0000 Received: (qmail 24192 invoked by uid 22791); 17 Jan 2008 12:31:58 -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; Thu, 17 Jan 2008 12:31:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 058672A9651; Thu, 17 Jan 2008 07:31:39 -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 M1LTGif6TcVe; Thu, 17 Jan 2008 07:31:38 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 0D5DE2A9644; Thu, 17 Jan 2008 07:31:37 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id F3638E7ACB; Thu, 17 Jan 2008 04:30:44 -0800 (PST) Date: Thu, 17 Jan 2008 12:31:00 -0000 From: Joel Brobecker To: Markus Deuling Cc: gdb-patches@sourceware.org Subject: Re: [RFA] new set/show multiple-choice-auto-select commands (take 2) Message-ID: <20080117123044.GE28020@adacore.com> References: <20080116135551.GE20837@adacore.com> <478EF71D.4060007@de.ibm.com> <20080117102621.GB28020@adacore.com> <478F3E4B.6050005@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <478F3E4B.6050005@de.ibm.com> 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-01/txt/msg00439.txt.bz2 > 1. set multiple-choice-auto-select off (default): > If there is 0 || 1 symbol found, GDB follows the "normal" code path. If > > 1 symbol is found > the user choice is invoked > > 2. set multiple-choice-auto-select all: > If there is > 1 symbol found all symbols found are automagically taken > for e.g. breakpoints. > > 3. set multiple-choice-auto-select cancel: > I think I'll ignore this. It makes no sense in that case. > > What do you think about it? Does it make sense? So far, so good. But: > The problem I saw and still see is the change of the default behaviour > of GDB (and with that maybe the introduction of a lot of FAILs in the > teststuite). The user has no possibility to avoid the user choice if > there are > 1 symbols. Right - that's the hole with using this setting. Thanks to your explanations, I think that one way to cover that hole would be to add an extra option like you suggested, and call it something like: within-shared-library or somesuch. I think it's more informative and also fits better in the concept introduced by the new "set/show" command. In that case, the default can be set "within-shared-library" and your current behavior would be preserved without change the default behavior in Ada. I need to look at how your feature is implemented. I wonder how well this is supported when the language is Ada... As a first step, Ada can treat this option as "off" (display menu and ask user). -- Joel