From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3047 invoked by alias); 22 Sep 2009 14:38:42 -0000 Received: (qmail 3036 invoked by uid 22791); 22 Sep 2009 14:38:41 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yw0-f177.google.com (HELO mail-yw0-f177.google.com) (209.85.211.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Sep 2009 14:38:34 +0000 Received: by ywh7 with SMTP id 7so5387299ywh.24 for ; Tue, 22 Sep 2009 07:38:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.243.21 with SMTP id q21mr1965274ybh.215.1253630313241; Tue, 22 Sep 2009 07:38:33 -0700 (PDT) In-Reply-To: <20080321145119.GC25307@caradoc.them.org> References: <20080203070825.GK1581@adacore.com> <20080321145119.GC25307@caradoc.them.org> Date: Tue, 22 Sep 2009 14:38:00 -0000 Message-ID: <8ba6bed40909220738m296c655v6c973e42d44c076c@mail.gmail.com> Subject: Re: [RFA] new set/show multiple-symbols command (take 4) From: Matt Rice To: Joel Brobecker , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2009-09/txt/msg00702.txt.bz2 On Sat, Feb 02, 2008 at 11:08:25PM -0800, Joel Brobecker wrote: >> =A0 =A0 =A0 =A0 (gdb) set multiple-symbols (ask|all|cancel) >> =A0 =A0 =A0 =A0 (gdb) show multiple-symbols > Hi, I wanted to get this question out here, I am kind of assuming it might be too late to change this to something to the effect of 'set multiple-symbols behaviour (ask|all|canc= el)' I would like to add something to the effect of set multiple-symbols override-list 'foo=3Duhh::foo(void):bar=3Duhh::bar(int= )' or maybe set multiple-symbols override-list add foo=3Duhh::foo(void) It could always be added as a separate command 'set multiple-symbols-override-list' unless it is possible to have both: set multiple-symbols (ask|all|cancel) set multiple-symbols override-list 'list' the idea is to first check the override-list, then fall if its not found, fall back to (ask|all|cancel) I was trying to think of a generic way I could avoid this hack in the apple sources, will work on a patch in the nearish future: /* APPLE LOCAL: Don't look for method name matches if it's ``main''. AppKit has a couple of classes with "main" methods now and this means every time you type "b main" on an ObjC program you get a "Select one of the following" dialogue. Lame. And it doesn't look like we can talk the AppKit guys down, so hack it in here. Jeez. Same thing with "error" now. Guess what function I put a breakpoint on all the time while working on gdb... */