From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14278 invoked by alias); 8 Nov 2011 14:50:52 -0000 Received: (qmail 14255 invoked by uid 22791); 8 Nov 2011 14:50:49 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Nov 2011 14:50:35 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RNn0U-0000p8-9d from pedro_alves@mentor.com ; Tue, 08 Nov 2011 06:50:34 -0800 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Nov 2011 14:50:32 +0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Toward multicore GDB - Set theory Date: Tue, 08 Nov 2011 14:50:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-12-generic; KDE/4.7.2; x86_64; ; ) Cc: Matt Rice , Tom Tromey , Stan Shebs References: <4EB088E7.8040107@earthlink.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111081450.30461.pedro@codesourcery.com> 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: 2011-11/txt/msg00061.txt.bz2 On Tuesday 08 November 2011 05:17:28, Matt Rice wrote: > On Thu, Nov 3, 2011 at 2:01 PM, Tom Tromey wrote: > > > (gdb) break [0-13] function # "semi-prefix" > > I personally prefer to avoid this one because the square brackets it > would seem difficult to > disambiguate between thread sets and objective-c methods, at least > when naming threads is added. > Yeah, that was one of the reasons the current WIP prototype does: [TRIGGER-SET] break -stop [STOP-SET] (--) LINESPEC That is [TRIGGER-SET] is a prefix, because it really is the same meaning as applying the prefix in other commands. That is, "the command applies to this set". For breakpoints, it naturally means "the breakpoint applies/triggers to/on this set". For "continue" it'd mean "continue this set", for print, it'd mean "print this expression in the context of this set", etc., etc.. The "-stop" option is required when specifying a stop set (compared to not requiring "-stop" and just accepting the [] part, and LINESPEC is last. This gets rid of LINESPEC ambiguity with obj-c at least, and leaves a saner path open for other future options too. I've left the `--' option separator too for the same reason (like in your info macro & friends changes). -- Pedro Alves