From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15775 invoked by alias); 20 Oct 2017 14:41:28 -0000 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 Received: (qmail 14209 invoked by uid 89); 20 Oct 2017 14:41:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=BAYES_00,GIT_PATCH_1,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Oct 2017 14:41:26 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1BBA24E047; Fri, 20 Oct 2017 14:41:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1BBA24E047 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves@redhat.com Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 749885D9CA; Fri, 20 Oct 2017 14:41:24 +0000 (UTC) Subject: Re: [RFA v3] enable/disable sub breakpoint range To: Xavier Roirand , gdb-patches@sourceware.org References: <83lgks1e1h.fsf@gnu.org> <57a9cdc7-a5fc-0852-8ebe-c7c32c78d475@adacore.com> From: Pedro Alves Message-ID: Date: Fri, 20 Oct 2017 14:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <57a9cdc7-a5fc-0852-8ebe-c7c32c78d475@adacore.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2017-10/txt/msg00667.txt.bz2 On 10/20/2017 01:17 PM, Xavier Roirand wrote: > Hello, > > Le 10/3/17 à 6:02 PM, Pedro Alves a écrit : >> On 10/03/2017 03:50 PM, Eli Zaretskii wrote: >>>> From: Xavier Roirand >> >> I'm wondering whether it wouldn't be better to expand this section >> of the manual: >> >> @cindex breakpoint ranges >> @cindex breakpoint lists >> @cindex ranges of breakpoints >> @cindex lists of breakpoints >> Some @value{GDBN} commands accept a space-separated list of breakpoints >> on which to operate. A list element can be either a single >> breakpoint number, >> like @samp{5}, or a range of such numbers, like @samp{5-7}. >> When a breakpoint list is given to a command, all breakpoints in >> that list >> are operated on. >> >> To describe locations as well. Similarly to how we describe >> "thread ID lists", where we have: >> >> @anchor{thread ID lists} >> @cindex thread ID lists >> Some commands accept a space-separated @dfn{thread ID list} as >> argument. A list element can be: >> >> @enumerate >> @item >> A thread ID as shown in the first field of the @samp{info threads} >> display, with or without an inferior qualifier. E.g., @samp{2.1} or >> @samp{1}. >> >> @item >> A range of thread numbers, again with or without an inferior >> qualifier, as in @var{inf}.@var{thr1}-@var{thr2} or >> @var{thr1}-@var{thr2}. E.g., @samp{1.2-4} or @samp{2-4}. >> >> @item >> All threads of an inferior, specified with a star wildcard, with or >> without an inferior qualifier, as in @var{inf}.@code{*} (e.g., >> @samp{1.*}) or @code{*}. The former refers to all threads of the >> given inferior, and the latter form without an inferior qualifier >> refers to all threads of the current inferior. >> >> @end enumerate >> >> For example, if the current inferior is 1, and inferior 7 has one >> thread with ID 7.1, the thread list @samp{1 2-3 4.5 6.7-9 7.*} >> includes threads 1 to 3 of inferior 1, thread 5 of inferior 4, threads >> 7 to 9 of inferior 6 and all threads of inferior 7. That is, in >> expanded qualified form, the same as @samp{1.1 1.2 1.3 4.5 6.7 6.8 6.9 >> 7.1}. >> >> Then commands that accept a thread ID list xref here. >> >> We'd do the same to breakpoint commands, i.e., commands that take >> an breakpoint/location list would xref the description of breakpoint >> lists. >> >> See commit 5d5658a1d3c3 ("Per-inferior/Inferior-qualified thread IDs") >> for how that looked like before support for '*' ranges was added. >> >> (And now I wonder whether it'd make sense to model the breakpoint >> number parsing on a simplified version of the thread ID number >> parsing. See gdb/tid-parse.h / tid_range_parser.) >> > > Unfortunately I don't have enough time to work on a simplified version > of the thread id number parsing in order to provide this enable/disable > sub range feature. What I can add in my current patch is the support for > .* notation if you think this is something really useful. Let me know > what do you think so I can propose a new patch. Eh, I never suggested to add the '*' parsing. Above I explicitly pointed at the commit _before_ that, even, so you could see how the documentation looked like then. Thanks, Pedro Alves